aboutsummaryrefslogtreecommitdiffstats
path: root/main/keyutils/APKBUILD
blob: ef9e1a56e1b6190daa28e622546160d9e262d995 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=keyutils
pkgver=1.6.2
pkgrel=0
pkgdesc="Linux Key Management Utilities"
url="http://people.redhat.com/~dhowells/keyutils/"
arch="all"
options="!check"  # Test suite requires RPM.
license="GPL-2.0-or-later LGPL-2.0-or-later"
makedepends="file linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-$pkgver.tar.gz"

build() {
	make -j1 \
		NO_ARLIB=1 \
		LIBDIR=/usr/lib \
		USRLIBDIR=/usr/lib \
		VERSION=$pkgver \
		RELEASE=-r$pkgrel \
		CFLAGS="$CFLAGS"
}

package() {
	make DESTDIR="$pkgdir" \
		NO_ARLIB=1 \
		LIBDIR=/usr/lib \
		USRLIBDIR=/usr/lib \
		install
}

libs() {
	pkgdesc="Key utilities library"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib
}

sha512sums="276eb8747a25f9519b1b244499b6ee47b12c54d20885a42f40f812bff4d8c774366e08dd8c6c9f87031fdd6fa91b22888625754b7d1152bdbf5b465120698a52  keyutils-1.6.2.tar.gz"