From ef9dd3a8c9bf58ffccfe2d593bc670d0f0289248 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 16 Feb 2022 12:22:20 +0100 Subject: Add libkeccka-musl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libkeccak-musl/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 libkeccak-musl/PKGBUILD (limited to 'libkeccak-musl/PKGBUILD') diff --git a/libkeccak-musl/PKGBUILD b/libkeccak-musl/PKGBUILD new file mode 100644 index 0000000..273be5f --- /dev/null +++ b/libkeccak-musl/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se> + +pkgname=libkeccak-musl +_pkgname=libkeccak +pkgver=1.3.1 +pkgrel=1 +pkgdesc='Keccak-family hashing library' +arch=('x86_64' 'i686') +url='https://github.com/maandree/libkeccak' +license=('custom:ISC') +_compiler=gcc +depends=('glibc' 'musl' "${_compiler}") +source=("${url}/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz") +b2sums=('cbd8466a8be32db633aadcc1cdfd7c09eedd0606d274d0f5e43b0055a5f87672c1ba27052fd03423779b84648379f0095310d8367cef2ed7ba70d49a66e03249') + +prepare() { + cd ${_pkgname}-${pkgver} + sed -i 's#FLAGS\s\+=#FLAGS +=#g' optimised.mk +} + +build() { + cd ${_pkgname}-${pkgver} + make CONFIGFILE=optimised.mk PREFIX=/usr/lib/musl CC="musl-${_compiler}" +} + +package() { + cd ${_pkgname}-${pkgver} + make CONFIGFILE=optimised.mk PREFIX=/usr/lib/musl DESTDIR="${pkgdir}" install + rm -r -- "${pkgdir}/usr/lib/musl/share" +} -- cgit v1.2.3-70-g09d2