1 # Maintainer: Frederik Schwan <freswa at archlinux dot org>
2 # Contributor: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se>
7 pkgdesc='Keccak-family hashing library'
9 url='https://github.com/maandree/libkeccak'
10 license=('custom:ISC')
12 checkdepends=('valgrind')
13 source=("https://github.com/maandree/libkeccak/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
14 b2sums=('073f31ce45ed292caa9f06190a4045c4c23938df1643c70f9a6530a340027797a96332722723a40d6424bb910283020213ef2f54a7f469809d0d8c646e2db48e')
17 cd ${pkgname}-${pkgver}
18 sed -i 's#FLAGS\s\+=#FLAGS +=#g' optimised.mk
22 cd ${pkgname}-${pkgver}
23 make CONFIGFILE=optimised.mk PREFIX=/usr
27 cd ${pkgname}-${pkgver}
28 make CONFIGFILE=optimised.mk check
32 cd ${pkgname}-${pkgver}
33 make CONFIGFILE=optimised.mk PREFIX=/usr DESTDIR="${pkgdir}" install