aboutsummaryrefslogtreecommitdiffstats
path: root/main/keyutils
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-09 18:49:17 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-10 02:55:03 +0000
commit12fd9c83e70d8eda36cf637c15569bec5d9344a6 (patch)
tree7cd08142a1c5d14ddd880376a13b76d3c28b4e04 /main/keyutils
parentdc013620e5cd879ecdcfcc40efd5693f4af70a01 (diff)
downloadaports-12fd9c83e70d8eda36cf637c15569bec5d9344a6.tar.bz2
aports-12fd9c83e70d8eda36cf637c15569bec5d9344a6.tar.xz
main/keyutils: modernise, mark tests broken
Diffstat (limited to 'main/keyutils')
-rw-r--r--main/keyutils/APKBUILD21
1 files changed, 5 insertions, 16 deletions
diff --git a/main/keyutils/APKBUILD b/main/keyutils/APKBUILD
index f23e1726f9..66f2bf97d8 100644
--- a/main/keyutils/APKBUILD
+++ b/main/keyutils/APKBUILD
@@ -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() {