1 # Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
6 pkgdesc='A password-hashing function (reference C implementation)'
8 url='https://github.com/P-H-C/phc-winner-argon2'
9 license=('Apache' 'custom:CC0')
11 provides=('libargon2.so')
12 source=("https://github.com/P-H-C/phc-winner-argon2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
13 sha256sums=('daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c')
16 cd "$srcdir/phc-winner-$pkgname-$pkgver"
18 make ARGON2_VERSION="${pkgver}" OPTTARGET='none' LIBRARY_REL='lib'
22 cd "$srcdir/phc-winner-$pkgname-$pkgver"
24 make ARGON2_VERSION="${pkgver}" OPTTARGET='none' LIBRARY_REL='lib' test
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: