diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3b7e27398092 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Lars Francke <lars.francke@stackable.tech> + +pkgname=stackablectl +pkgver=v0.5.0.r10.g53df183 +pkgrel=1 +pkgdesc="Command line tool to interact with a Stackable Data Platform" +arch=('x86_64') +url="https://github.com/stackabletech/stackablectl/" +license=('Apache') +makedepends=('go' 'rust') +source=("$pkgname::git+https://github.com/stackabletech/stackablectl.git") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$pkgname" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname" + cargo build --frozen --release --all-features +} + +check() { + cd "$pkgname" + cargo test --frozen --all-features +} + +package() { + cd "$pkgname" + install -vDm755 -t "$pkgdir/usr/bin" target/release/stackablectl +} |