aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2020-06-29 18:48:15 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-06-29 18:48:15 +0000
commit1ff78810d68f3f8f311b9352d90c381eaa77fa1a (patch)
tree60b3bf903251fbe6a629db71b015ad91c8abb86e
parent38bfaf93da9110426ad0f4f823fc40030cc25730 (diff)
downloadaports-1ff78810d68f3f8f311b9352d90c381eaa77fa1a.tar.gz
aports-1ff78810d68f3f8f311b9352d90c381eaa77fa1a.tar.bz2
aports-1ff78810d68f3f8f311b9352d90c381eaa77fa1a.tar.xz
testing/asuran-cli: new aport
-rw-r--r--testing/asuran-cli/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/asuran-cli/APKBUILD b/testing/asuran-cli/APKBUILD
new file mode 100644
index 0000000000..ba522c74bc
--- /dev/null
+++ b/testing/asuran-cli/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Duncan Bellamy <dunk@denkimushi.com>
+# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
+pkgname=asuran-cli
+pkgver=0.1.5
+pkgrel=0
+pkgdesc="Asuran is a new archive format and rust implementation"
+url="https://gitlab.com/asuran-rs/asuran"
+arch="all !s390x !ppc64le !mips !mips64" #ppc64le takes too long to build
+license="BSD-2-Clause-Patent"
+makedepends="cargo openssl-dev"
+source="https://gitlab.com/asuran-rs/asuran/-/archive/v$pkgver/asuran-v$pkgver.tar.gz"
+builddir="$srcdir/asuran-v$pkgver"
+
+build() {
+ local _aes=
+ case "$CARCH" in
+ aarch64*|x86_64) _aes="-C target-feature=+aes"
+ export RUSTFLAGS="$_aes" ;;
+ esac
+
+ cargo build --package asuran-cli --release --locked --verbose
+}
+
+check() {
+ cargo test all --release --locked --verbose
+}
+
+package() {
+ install -Dm0755 target/release/asuran-cli "$pkgdir"/usr/bin/asuran-cli
+}
+
+sha512sums="ac39dade83b36c4f4bae75216ac1a91daaf885abb5815e61f3150f2815b4b38c4ed200eae411cdc3b52c249527609493b6d05deb649dc4f5643b797fa1d40c33 asuran-v0.1.5.tar.gz"