summaryrefslogtreecommitdiff
path: root/system/argon2/APKBUILD
blob: c91fbfd102a5e6fcb21d91a7a5b863d356737579 (plain) (blame)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Corey Oliver <coreyjonoliver@gmail.com>
# Maintainer: 
pkgname=argon2
_pkgname=phc-winner-argon2
pkgver=20171227
pkgrel=1
pkgdesc="Password hashing function Argon2"
url="https://github.com/P-H-C/phc-winner-argon2"
arch="all"
license="Apache-2.0 AND CC0-1.0"
subpackages="$pkgname-dev $pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	make OPTTARGET=none
}

check() {
	cd "$builddir"
	make OPTTARGET=none test
}

package() {
	cd "$builddir"
	make OPTTARGET=none DESTDIR="$pkgdir" install
	mv "$pkgdir"/usr/lib "$pkgdir"/
}

sha512sums="9c9e1a3905e61ac6913d1e073c104477e419ddd0506adc4487e88e98d19165ed8901fe8bb11246ed0cc71b3523c190da9692d5926642f86be09c3e67510afe4d  argon2-20171227.tar.gz"