Date: Tuesday, June 30, 2020 @ 03:41:55
  Author: freswa
Revision: 657037

libkeccak: move from unsupported to community

Added:
  libkeccak/
  libkeccak/repos/
  libkeccak/trunk/
  libkeccak/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: libkeccak/trunk/PKGBUILD
===================================================================
--- libkeccak/trunk/PKGBUILD                            (rev 0)
+++ libkeccak/trunk/PKGBUILD    2020-06-30 03:41:55 UTC (rev 657037)
@@ -0,0 +1,34 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se>
+
+pkgname=libkeccak
+pkgver=1.2
+pkgrel=2
+pkgdesc='Keccak-family hashing library'
+arch=('x86_64')
+url='https://github.com/maandree/libkeccak'
+license=('custom:ISC')
+depends=('glibc')
+checkdepends=('valgrind')
+source=("https://github.com/maandree/libkeccak/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+b2sums=('32655966554d49ac8a10128d6fd6ef227acc8549fd71fd433a564432b0b5e15398bcc0b259dc1d1cad6f0b8004a671d1d9bbc1a0302e1ee40e53d8cb09562986')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed -i 's#FLAGS\s\+=#FLAGS +=#g' optimised.mk
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  make CONFIGFILE=optimised.mk PREFIX=/usr
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make CONFIGFILE=optimised.mk check
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make CONFIGFILE=optimised.mk PREFIX=/usr DESTDIR="${pkgdir}" install
+}

Reply via email to