diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-16 12:54:26 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-16 12:54:26 +0100 |
commit | f6ec5667866be9c003469594c59e91a5db4b0531 (patch) | |
tree | 0eb667adf27055e09e85ee60015e738790d4c5da /libblake/PKGBUILD | |
parent | Add libkeccka-musl (diff) | |
download | aur-packages-f6ec5667866be9c003469594c59e91a5db4b0531.tar.gz aur-packages-f6ec5667866be9c003469594c59e91a5db4b0531.tar.bz2 aur-packages-f6ec5667866be9c003469594c59e91a5db4b0531.tar.xz |
Add musl versions of libblake, libar2, and libar2simplified
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libblake/PKGBUILD')
-rw-r--r-- | libblake/PKGBUILD | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/libblake/PKGBUILD b/libblake/PKGBUILD index 5e63864..8299330 100644 --- a/libblake/PKGBUILD +++ b/libblake/PKGBUILD @@ -1,29 +1,49 @@ # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se> -pkgname=libblake +pkgbase=libblake +pkgname=($pkgbase $pkgbase-musl) pkgver=1.0 -pkgrel=1 -pkgdesc="Library for the BLAKE-family of hashing functions" +pkgrel=2 +_pkgdesc="Library for the BLAKE-family of hashing functions" +pkgdesc="${_pkgdesc}" arch=(i686 x86_64) url="https://github.com/maandree/libblake" license=('custom:ISC') depends=() -checkdepends=() -makedepends=() -source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz) +checkdepends=(glibc musl) +_compiler=gcc +makedepends=(glibc musl ${_compiler}) +source=($pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz) sha256sums=(4e435aba4f4edef18a1e09b3c20f4618daaa8c9cc4057e3136199ab91c1ba8eb) build() { - cd "$srcdir/$pkgname-$pkgver" + cd -- "$srcdir" + cp -r -- "$pkgbase-$pkgver" "$pkgbase-$pkgver-musl" + cd -- "$pkgbase-$pkgver" make PREFIX=/usr + cd -- "../$pkgbase-$pkgver-musl" + make PREFIX=/usr/lib/musl CC="musl-${_compiler} -std=c11" } check() { - cd "$srcdir/$pkgname-$pkgver" + cd -- "$srcdir/$pkgbase-$pkgver" make check + cd -- "../$pkgbase-$pkgver-musl" + make CC="musl-${_compiler} -std=c11" check } -package() { - cd "$srcdir/$pkgname-$pkgver" +package_libblake() { + pkgdesc="${_pkgdesc}" + depends=(glibc) + + cd -- "$srcdir/$pkgbase-$pkgver" make PREFIX=/usr DESTDIR="$pkgdir" install } + +package_libblake-musl() { + pkgdesc="${_pkgdesc} (musl version)" + depends=(musl) + + cd -- "$srcdir/$pkgbase-$pkgver-musl" + make PREFIX=/usr/lib/musl DESTDIR="$pkgdir" install +} |