aboutsummaryrefslogtreecommitdiffstats
path: root/testing/b2sum/APKBUILD
blob: 7a6fc3db8c9c2c778cc490eff9174702530341ac (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
33
34
35
36
37
38
39
40
# 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"