mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/b3sum: new aport
https://blake3.io Command line implementation of the BLAKE3 hash function
This commit is contained in:
parent
6f1c2ae90d
commit
a8b76d175c
32
testing/b3sum/APKBUILD
Normal file
32
testing/b3sum/APKBUILD
Normal file
@ -0,0 +1,32 @@
|
||||
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
||||
# Maintainer: Leo <thinkabit.ukim@gmail.com>
|
||||
pkgname=b3sum
|
||||
pkgver=0.1.0
|
||||
pkgrel=0
|
||||
pkgdesc="Command line implementation of the BLAKE3 hash function"
|
||||
url="https://blake3.io"
|
||||
arch="all !s390x"
|
||||
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_avx512 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="fba4d71ffa84cb4b7b1ce968e48ded1143915e82cfbef4a7a6f1b8a4e97a25f9a3490a13b157f437ad18401b7c545d1fcdbf2032f72e29dba0c8d504e415b481 b3sum-0.1.0.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user