blob: d2d9c76b9299cea244b0d7f50984229d98cef1b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se>
pkgbase=libblake
pkgname=($pkgbase $pkgbase-musl)
pkgver=1.1
pkgrel=1
_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=(glibc musl)
_compiler=gcc
makedepends=(glibc musl ${_compiler})
source=($pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha256sums=(4d0ea68c85b0755979c55af286aa4e51fb31ed43ead78df9e1cf202fb4654929)
build() {
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/$pkgbase-$pkgver"
make check
cd -- "../$pkgbase-$pkgver-musl"
make CC="musl-${_compiler} -std=c11" check
}
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
}
|