aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-07-03 09:07:07 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-03 09:07:07 +0000
commit925deab8814d5aca05091f621e57426c698eafe9 (patch)
tree41634ff1256bc25fd89b0e71b0bb21718e5bddee
parent7acdbc68ea9e9c3736761e763f7d259ab69f91c1 (diff)
community/libnsl: moved from testing, added check() function
-rw-r--r--community/libnsl/APKBUILD (renamed from testing/libnsl/APKBUILD)19
-rw-r--r--community/libnsl/cdefs.patch (renamed from testing/libnsl/cdefs.patch)0
-rw-r--r--community/libnsl/nis_h.patch (renamed from testing/libnsl/nis_h.patch)0
3 files changed, 9 insertions, 10 deletions
diff --git a/testing/libnsl/APKBUILD b/community/libnsl/APKBUILD
index 8ccb76087d5..167934883c6 100644
--- a/testing/libnsl/APKBUILD
+++ b/community/libnsl/APKBUILD
@@ -2,16 +2,12 @@
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=libnsl
pkgver=1.0.5
-pkgrel=1
+pkgrel=2
pkgdesc="Public client interface for NIS(YP) and NIS+ in a IPv6 ready version"
url="https://github.com/thkukuk/libnsl"
arch="all"
license="LGPL2+"
-options="!check"
-depends=
-depends_dev=
-makedepends="autoconf automake libtool libc-dev gettext-dev libtirpc-dev"
-install=
+makedepends="autoconf automake libtool libc-dev gettext-dev libtirpc-dev file"
subpackages="$pkgname-dev"
source="https://github.com/thkukuk/$pkgname/archive/$pkgname-$pkgver.tar.gz
nis_h.patch
@@ -19,9 +15,13 @@ source="https://github.com/thkukuk/$pkgname/archive/$pkgname-$pkgver.tar.gz
"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
-prepare() {
- default_prepare || return 1
+check() {
+ cd "$builddir"
+ make check
+}
+prepare() {
+ default_prepare
cd "$builddir"
./autogen.sh
}
@@ -31,8 +31,7 @@ build() {
./configure LIBS="-lintl" \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
+ --prefix=/usr
make
}
diff --git a/testing/libnsl/cdefs.patch b/community/libnsl/cdefs.patch
index dbbe800a347..dbbe800a347 100644
--- a/testing/libnsl/cdefs.patch
+++ b/community/libnsl/cdefs.patch
diff --git a/testing/libnsl/nis_h.patch b/community/libnsl/nis_h.patch
index 199259df2e8..199259df2e8 100644
--- a/testing/libnsl/nis_h.patch
+++ b/community/libnsl/nis_h.patch