Skip to content
Snippets Groups Projects
Commit a8b76d17 authored by Leo's avatar Leo
Browse files

testing/b3sum: new aport

https://blake3.io
Command line implementation of the BLAKE3 hash function
parent 6f1c2ae9
No related merge requests found
# 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment