diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-01-10 18:24:56 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-11 00:19:01 +0100 |
commit | a8b76d175ceff32cb8346806da3634fe5e859338 (patch) | |
tree | 7b5c852129441f93689409c7bed71da4a308b711 /testing/b3sum | |
parent | 6f1c2ae90dbeeb698aa4cfcff6983ef2ab0fb840 (diff) | |
download | aports-a8b76d175ceff32cb8346806da3634fe5e859338.tar.bz2 aports-a8b76d175ceff32cb8346806da3634fe5e859338.tar.xz |
testing/b3sum: new aport
https://blake3.io
Command line implementation of the BLAKE3 hash function
Diffstat (limited to 'testing/b3sum')
-rw-r--r-- | testing/b3sum/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
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 <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +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" |