From 94553260a94ac72cfb47ec8d8047502b53f68384 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 2 Jul 2023 16:29:05 +0200 Subject: Update libkeccak-musl to version 1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libkeccak-musl/PKGBUILD | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'libkeccak-musl') diff --git a/libkeccak-musl/PKGBUILD b/libkeccak-musl/PKGBUILD index 4198734..57e4f79 100644 --- a/libkeccak-musl/PKGBUILD +++ b/libkeccak-musl/PKGBUILD @@ -2,29 +2,34 @@ pkgname=libkeccak-musl _pkgname=libkeccak -pkgver=1.3.1 -pkgrel=2 +pkgver=1.4 +pkgrel=1 pkgdesc='Keccak-family hashing library (musl-version)' arch=('x86_64' 'i686') -url='https://github.com/maandree/libkeccak' +url='https://codeberg.org/maandree/libkeccak' license=('custom:ISC') _compiler=gcc depends=('glibc' 'musl' "${_compiler}") -source=("${url}/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz") -b2sums=('cbd8466a8be32db633aadcc1cdfd7c09eedd0606d274d0f5e43b0055a5f87672c1ba27052fd03423779b84648379f0095310d8367cef2ed7ba70d49a66e03249') +source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +b2sums=('645ae0cb8bb8c8f512487eec876bc63bd8c2e2a5243e3ebe32aca2e4cc79a3271a18a8295d097f6a1e536444bcf1af6331507ccf814bab2ae838c005434ca84f') prepare() { - cd ${_pkgname}-${pkgver} + cd ${_pkgname} sed -i 's#FLAGS\s\+=#FLAGS +=#g' optimised.mk } build() { - cd ${_pkgname}-${pkgver} - make CONFIGFILE=optimised.mk PREFIX=/usr/lib/musl CC="musl-${_compiler}" + cd ${_pkgname} + make CONFIGFILE=optimised.mk PREFIX=/usr/lib/musl CC="musl-${_compiler} -std=c99" +} + +check() { + cd ${_pkgname} + make CONFIGFILE=optimised.mk PREFIX=/usr/lib/musl CC="musl-${_compiler} -std=c99" check } package() { - cd ${_pkgname}-${pkgver} + cd ${_pkgname} make CONFIGFILE=optimised.mk PREFIX=/usr/lib/musl DESTDIR="${pkgdir}" install rm -r -- "${pkgdir}/usr/lib/musl/share" } -- cgit v1.2.3-70-g09d2