summaryrefslogtreecommitdiff
path: root/user/keyutils/APKBUILD
blob: 7efd00a7a001903efd2aa022af7613ec7671a69d (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=keyutils
pkgver=1.6.1
pkgrel=0
pkgdesc="Linux key management utilities"
url="https://people.redhat.com/~dhowells/keyutils/"
arch="all"
options="!check"  # Test suite requires RPM.
license="GPL-2.0+ AND LGPL-2.1+"
depends=""
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=/lib \
		USRLIBDIR=/usr/lib \
		VERSION=$pkgver \
		RELEASE=-r$pkgrel \
		CFLAGS="$CFLAGS"
}

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

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

sha512sums="a717d9bc6142edefc02da9e92242db352e0bc835483c303629c236e6d9cc51fb495b03fdf9e0e9f0864d7e755c92b7a67f018e806a5de1944673e60e317134a2  keyutils-1.6.1.tar.gz"