main/keyutils: modernise, mark tests broken

This commit is contained in:
A. Wilcox 2018-02-09 18:49:17 -06:00 committed by William Pitcock
parent dc013620e5
commit 12fd9c83e7

View File

@ -6,6 +6,7 @@ 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"
depends=""
makedepends="file linux-headers"
@ -15,36 +16,24 @@ 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"
cd "$builddir"
make -j1 \
NO_ARLIB=1 \
LIBDIR=/lib \
USRLIBDIR=/usr/lib \
VERSION=$pkgver \
RELEASE=-r$pkgrel \
CFLAGS="$CFLAGS" \
|| return 1
CFLAGS="$CFLAGS"
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir" \
NO_ARLIB=1 \
LIBDIR=/lib \
USRLIBDIR=/usr/lib \
install || return 1
install
}
libs() {