aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnl3/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-21 21:36:35 -0500
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:53 +0000
commitad39c56621b7296c8e9edec39fd2a1d885ecfde4 (patch)
tree87030dce6c0aa3c323a1888ad9f323ab2208a368 /main/libnl3/APKBUILD
parent1218ad207e757e2c5019886c1af1ae2c1fcb2d21 (diff)
downloadaports-ad39c56621b7296c8e9edec39fd2a1d885ecfde4.tar.bz2
aports-ad39c56621b7296c8e9edec39fd2a1d885ecfde4.tar.xz
main/libnl3: add test suite, modernise
Diffstat (limited to 'main/libnl3/APKBUILD')
-rw-r--r--main/libnl3/APKBUILD22
1 files changed, 14 insertions, 8 deletions
diff --git a/main/libnl3/APKBUILD b/main/libnl3/APKBUILD
index 9e3cae63cf..7fc6df8754 100644
--- a/main/libnl3/APKBUILD
+++ b/main/libnl3/APKBUILD
@@ -1,21 +1,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnl3
pkgver=3.2.28
-pkgrel=0
+pkgrel=1
pkgdesc="Library for applications dealing with netlink sockets"
url="http://www.infradead.org/~tgr/libnl/"
arch="all"
license="GPL"
depends=
makedepends="linux-headers flex bison libtool autoconf automake"
+checkdepends="check-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-cli"
source="https://github.com/thom311/libnl/releases/download/libnl${pkgver//./_}/libnl-$pkgver.tar.gz"
builddir="$srcdir"/libnl-$pkgver
prepare () {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
- autoreconf -vif || return 1
+ autoreconf -vif
}
build () {
@@ -28,13 +29,18 @@ build () {
--mandir=/usr/share/man \
--localstatedir=/var \
--disable-static \
- || return 1
- make || return 1
+ --enable-unit-tests
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
cli() {
@@ -42,8 +48,8 @@ cli() {
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libnl-cli*.so.* \
"$pkgdir"/usr/lib/libnl \
- "$subpkgdir"/usr/lib/ || return 1
- mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1
+ "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
md5sums="bab12db1eb94a42129f712a44be91a67 libnl-3.2.28.tar.gz"