mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Maintainer: Alex Raschi <raschi.alex@gmail.com>
|
|
pkgname=b2sum
|
|
_pkgname=BLAKE2
|
|
pkgver=20180711
|
|
_commit=320c325437539ae91091ce62efec1913cd8093c2
|
|
pkgrel=0
|
|
pkgdesc="BLAKE2 command line utility with multiple algorithms"
|
|
url="https://blake2.net/"
|
|
arch="all"
|
|
license="CC0-1.0"
|
|
depends=""
|
|
makedepends=""
|
|
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() {
|
|
cd "$builddir"
|
|
|
|
# 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() {
|
|
cd "$builddir"
|
|
PREFIX="$pkgdir"/usr make install
|
|
}
|
|
|
|
sha512sums="db668b6fad82c82a9431db0bad5982d9ba7ea3aeb3ede0a5335702a44fd19d23f2b89207940c060dba992009e1de7d8d892f6719cd8ffdeaed26303bdc7a7a6f b2sum-20180711.tar.gz
|
|
36a537986c5723e96c6f73bf6676863ffa0d09768884a9b9ccb05dbfff12c8e045ce4bfce57a92588f25c50f101ba9f9814902b91b7f58121399d28943cd5328 makefile.patch"
|