# Contributor: Leo # Maintainer: Leo pkgname=b3sum pkgver=0.3.1 pkgrel=0 pkgdesc="Command line implementation of the BLAKE3 hash function" url="https://blake3.io" arch="all !s390x !armhf" # 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="7dae9ecd066e8bb5545a3012cd2d073b345b88c981247c95229e1f2f69192611ea794819ce7c71eef8ece5868ef1936c6bf3d19e533db4cbb6e0622b57250e7c b3sum-0.3.1.tar.gz"