mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Leo <thinkabit.ukim@gmail.com>
|
|
pkgname=b3sum
|
|
pkgver=0.2.2
|
|
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="c_neon rayon" ;;
|
|
x86_64) _features="c 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="e3235a43e2bebdd97d69a81dd96db7c43c11535fb862f6db0a0ceab3b33a8aefdb7b72d05aebd49507d20faae8963061026ddce6deaa8c71ca12a84ef87fb212 b3sum-0.2.2.tar.gz"
|