aboutsummaryrefslogtreecommitdiffstats
path: root/testing/b3sum/APKBUILD
blob: eca64569546ca2fa0c6ed4ca854d969acd4a23dc (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
31
32
# 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"