# Contributor: Leo # Maintainer: Leo pkgname=b3sum pkgver=0.3.3 pkgrel=0 pkgdesc="Command line implementation of the BLAKE3 hash function" url="https://blake3.io" arch="all !s390x !armhf !mips !mips64" # armhf: 'vaddq_u32': target specific option mismatch 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="neon" ;; esac build() { cargo build --release --locked --no-default-features ${_features:+--features="$_features"} } check() { cargo test --release --locked --no-default-features ${_features:+--features="$_features"} } package() { cargo install --path . --root="$pkgdir/usr" --no-default-features ${_features:+--features "$_features"} rm "$pkgdir"/usr/.crates.toml } sha512sums="ad8da38924026717fd4bd2d0f8c080a66369a06082fae0eb53b77636d93b8a5593b5deb7e802f7694ff83c89c1ba17d32f975935fa33767749242c00b55c3e7d b3sum-0.3.3.tar.gz"