blob: 6bf5c1e325faf5ebe7039a6153c71ec2dde2125f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
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"
|