blob: 92492e10375a16b34520f51d1953b53eafec6135 (
plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=keyutils
pkgver=1.5.8
pkgrel=1
pkgdesc="Linux Key Management Utilities"
url="http://people.redhat.com/~dhowells/keyutils/"
arch="all"
license="GPL2+ LGPL2+"
depends=""
makedepends="file"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://people.redhat.com/~dhowells/keyutils/keyutils-$pkgver.tar.bz2
fix-includes.patch
"
_builddir="$srcdir"/keyutils-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make -j1 \
NO_ARLIB=1 \
LIBDIR=/lib \
USRLIBDIR=/usr/lib \
VERSION=$pkgver \
RELEASE=-r$pkgrel \
CFLAGS="$CFLAGS" \
NO_GLIBC_KEYERR=1 \
|| return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" \
NO_ARLIB=1 \
LIBDIR=/lib \
USRLIBDIR=/usr/lib \
install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
libs() {
pkgdesc="Key utilities library"
mkdir -p "$subpkgdir"
mv "$pkgdir"/lib "$subpkgdir"/
}
md5sums="3c7f463039b83833c12a9414c2fcb389 keyutils-1.5.8.tar.bz2
4002a2e97e6c165f4ee1f1d54c299b7a fix-includes.patch"
sha256sums="6c7da37272eb39abc2ebafc9ba4a580d7cf8725b61e1db21e508de7ab24b819c keyutils-1.5.8.tar.bz2
902a1721a42b13a2440be1db39e6e60c0f38fe57cb6871a2285ea179b3653ef8 fix-includes.patch"
sha512sums="f69b1acd3bff2a821ce31c6a772eea68dfbe57bb1d6128fa344ab9688c9110733b1432176e42b67648ff3a01200f4adbb92e4577132539b4c4af817027ed8f19 keyutils-1.5.8.tar.bz2
e7a913c97c4116e5f4b7fdf4d071835dcf05a7aa4ce782fd717e4694414023fb3ed88b8a15710b15869545046e99f706fe8476f9d4fe6578d2eae571e1ed8103 fix-includes.patch"
|