aboutsummaryrefslogblamecommitdiffstats
path: root/testing/b3sum/APKBUILD
blob: ae1818b70806f7e75c707772e41eb87f275683ef (plain) (tree)
1
2
3
4
5
6
7
8


                                             
            
        

                                                                 
                                                                                            




                                                                                     
                                 


         
                                                                                                  


         
                                                                                                 


           
                                                                                                               
                                 

 
                                                                                                                                                                 
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=b3sum
pkgver=0.3.7
pkgrel=1
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*
}

sha512sums="78749ffc7e3632344996dda635b31a7a91a16e201ff8398148211a4315285c7c1d65acb78307fc8f54d7ce83e26364c8eafec94933f61aa78ed395540d44f833  b3sum-0.3.7.tar.gz"