summaryrefslogblamecommitdiff
path: root/user/keyutils/APKBUILD
blob: f87958b7ad29bd9eef914db5bb615a902212129c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                    

             





                                                   
                                         
                                                     
                                                                              


























                                       
                                                                                                                                                                      
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=keyutils
pkgver=1.5.11
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 krb5-dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://people.redhat.com/~dhowells/keyutils/keyutils-$pkgver.tar.bz2"

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

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

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

sha512sums="5f0dc5d5ceb673cf0ba71d3a0b525d09adc8d501a795372aa3dc29215ef393cb8577c72051cecabdb9a46dca4fcaa11e629291fb857290872475a7e445f47d43  keyutils-1.5.11.tar.bz2"