summaryrefslogtreecommitdiffstats
path: root/main/keyutils/APKBUILD
blob: 8a004e38da39f065236ff5d875bcf94c1d6a8a13 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=keyutils
pkgver=1.5.2
pkgrel=0
pkgdesc="Linux Key Management Utilities"
url="http://people.redhat.com/~dhowells/keyutils/"
arch="all"
license="GPLv2+ LGPLv2+"
depends=""
makedepends=""
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://people.redhat.com/~dhowells/keyutils/keyutils-$pkgver.tar.bz2
	keyutils-no-key.dns_resolver.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="19811ee31f683058a9aae3e6a3a23a7f  keyutils-1.5.2.tar.bz2
5884b0e3fa9609d484ad6f073810b21a  keyutils-no-key.dns_resolver.patch"