mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
35 lines
1 KiB
Text
35 lines
1 KiB
Text
# Maintainer:
|
|
pkgname=b2sum
|
|
_pkgname=BLAKE2
|
|
pkgver=20190729
|
|
_commit=997fa5ba1e14b52c554fb03ce39e579e6f27b90c
|
|
pkgrel=2
|
|
pkgdesc="BLAKE2 command line utility with multiple algorithms"
|
|
url="https://blake2.net/"
|
|
arch="all"
|
|
license="CC0-1.0"
|
|
subpackages="$pkgname-doc"
|
|
replaces="coreutils"
|
|
options="!check" # no test suite
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$_commit.tar.gz
|
|
makefile.patch"
|
|
builddir="$srcdir/$_pkgname-$_commit/$pkgname"
|
|
|
|
build() {
|
|
# SSE2 is not enabled for x86.
|
|
# arm* leave disabled for now, fails to build at least on armhf.
|
|
case "$CARCH" in
|
|
#aarch64|arm*) _use=neon;;
|
|
x86_64) _use=sse;;
|
|
*) _use=ref;;
|
|
esac
|
|
|
|
USE="$_use" make
|
|
}
|
|
|
|
package() {
|
|
PREFIX="$pkgdir"/usr make install
|
|
}
|
|
|
|
sha512sums="55f20ac11e444abc42c6895fbb64623e1fda40024fdcbee0f6d28a8ebc0187c5cab6862835f52dfc38418870c5d7a9fffe8a23a1b6ab88e7fbbb12d69c0d48a8 b2sum-20190729.tar.gz
|
|
36a537986c5723e96c6f73bf6676863ffa0d09768884a9b9ccb05dbfff12c8e045ce4bfce57a92588f25c50f101ba9f9814902b91b7f58121399d28943cd5328 makefile.patch"
|