From a8b76d175ceff32cb8346806da3634fe5e859338 Mon Sep 17 00:00:00 2001 From: Leo Date: Fri, 10 Jan 2020 18:24:56 +0100 Subject: testing/b3sum: new aport https://blake3.io Command line implementation of the BLAKE3 hash function --- testing/b3sum/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 testing/b3sum/APKBUILD (limited to 'testing/b3sum') diff --git a/testing/b3sum/APKBUILD b/testing/b3sum/APKBUILD new file mode 100644 index 0000000000..2b9fd61f64 --- /dev/null +++ b/testing/b3sum/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Leo +# Maintainer: Leo +pkgname=b3sum +pkgver=0.1.0 +pkgrel=0 +pkgdesc="Command line implementation of the BLAKE3 hash function" +url="https://blake3.io" +arch="all !s390x" +license="CC0-1.0 OR Apache-2.0" +makedepends="cargo" +source="b3sum-$pkgver.tar.gz::https://crates.io/api/v1/crates/b3sum/$pkgver/download" + +case "$CARCH" in + arm*) _features="c_neon rayon" ;; + x86_64) _features="c_avx512 rayon" ;; + *) _features="rayon" ;; +esac + +build() { + cargo build --release --locked --no-default-features --features="$_features" +} + +check() { + cargo test --release --locked --no-default-features --features="$_features" +} + +package() { + cargo install --path . --root="$pkgdir/usr" --no-default-features --features "$_features" + rm "$pkgdir"/usr/.crates.toml +} + +sha512sums="fba4d71ffa84cb4b7b1ce968e48ded1143915e82cfbef4a7a6f1b8a4e97a25f9a3490a13b157f437ad18401b7c545d1fcdbf2032f72e29dba0c8d504e415b481 b3sum-0.1.0.tar.gz" -- cgit v1.2.3