archrelease: copy trunk to extra-x86_64
[arch-packages.git] / argon2 / trunk / PKGBUILD
blob00b2c3170520f95ca5c47a516c7b6e835a5eed63
1 # Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
3 pkgname=argon2
4 pkgver=20190702
5 pkgrel=4
6 pkgdesc='A password-hashing function (reference C implementation)'
7 arch=('x86_64')
8 url='https://github.com/P-H-C/phc-winner-argon2'
9 license=('Apache' 'custom:CC0')
10 depends=('glibc')
11 provides=('libargon2.so')
12 source=("https://github.com/P-H-C/phc-winner-argon2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
13 sha256sums=('daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c')
15 build() {
16   cd "$srcdir/phc-winner-$pkgname-$pkgver"
18   make ARGON2_VERSION="${pkgver}" OPTTARGET='none' LIBRARY_REL='lib'
21 check() {
22   cd "$srcdir/phc-winner-$pkgname-$pkgver"
24   make ARGON2_VERSION="${pkgver}" OPTTARGET='none' LIBRARY_REL='lib' test
27 package() {
28   cd "$srcdir/phc-winner-$pkgname-$pkgver"
30   make ARGON2_VERSION="${pkgver}" OPTTARGET='none' LIBRARY_REL='lib' DESTDIR="$pkgdir" install
32   install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/argon2/LICENSE"
35 # vim:set ts=2 sw=2 et: