# Contributor: Leo # Maintainer: Celeste pkgname=b3sum pkgver=1.4.1 pkgrel=2 pkgdesc="Command line implementation of the BLAKE3 hash function" url="https://blake3.io" arch="all" license="CC0-1.0 OR Apache-2.0" makedepends="cargo cargo-auditable" source="b3sum-$pkgver.tar.gz::https://crates.io/api/v1/crates/b3sum/$pkgver/download" case "$CARCH" in armhf) # hang forever, probably due to non-native hardware options="$options !check" ;; aarch64|armv7) _features="neon" ;; esac prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen ${_features:+--features $_features} } check() { cargo test --frozen ${_features:+--features $_features} } package() { install -Dm755 target/release/b3sum -t "$pkgdir"/usr/bin } sha512sums=" cfd884003e7bba644d9df1c88a0266b2faff433e80eaffdd66ab77e3c2cd1f566378f9ce8732daa59a53184e11863026d23909e25ad1b07cc6b5bfdc3790373d b3sum-1.4.1.tar.gz "