blob: 266e889d63829a08df1cfec06abb6d1400a81ae4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Bruno Felipe Leal Delfino <bruno.delfino1995@gmail.com>
pkgname='kct-git'
pkgver=0.3.1.34.gb52cd91
pkgrel=1
arch=('x86_64')
url='https://github.com/kseat/kct'
pkgdesc='A Kubernetes Configuration Tool'
license=('MIT')
makedepends=('git' 'rust' 'cargo')
depends=('gcc-libs')
provides=('kct')
conflicts=('kct' 'kct-bin')
source=("$pkgname::git+https://github.com/kseat/kct.git")
sha256sums=('SKIP')
pkgver() {
cd $pkgname/bin
echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build(){
cd "$pkgname"
env CARGO_INCREMENTAL=0 cargo build --release --locked
}
check(){
cd "$pkgname"
env CARGO_INCREMENTAL=0 cargo test --release
}
package() {
cd "$pkgname"
install -Dm755 'target/release/kct' "$pkgdir/usr/bin/kct"
install -Dm644 'LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|