aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 20:32:54 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 17:15:21 +0000
commit491034e4785c0eff20cca83af4bd5c640115fb6a (patch)
tree79d37eafc0bc005fc4fed2f25e1fa4be61549c6a
parentc8cc5d48c0f240db62614fc64d77bc5b5345c4a7 (diff)
downloadaports-491034e4785c0eff20cca83af4bd5c640115fb6a.tar.gz
aports-491034e4785c0eff20cca83af4bd5c640115fb6a.tar.bz2
aports-491034e4785c0eff20cca83af4bd5c640115fb6a.tar.xz
main/libasyncns: modernise, add check
-rw-r--r--main/libasyncns/APKBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/main/libasyncns/APKBUILD b/main/libasyncns/APKBUILD
index 3944fb7a94..6044b0bfac 100644
--- a/main/libasyncns/APKBUILD
+++ b/main/libasyncns/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=libasyncns
pkgver=0.8
-pkgrel=0
+pkgrel=1
pkgdesc="Asynchronous Name Service Library"
url="http://0pointer.de/lennart/projects/libasyncns/"
arch="all"
@@ -14,27 +14,31 @@ install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://dev.alpinelinux.org/archive/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
-
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--disable-static \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+ libasyncns/asyncns-test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
sha512sums="2daad3a2d9eb875e0575843d9e9e2787be6cbba89211fd073fa8898ff80e0a891c7da1a7b0ef70f306318cb3a963ecd65d53d24d08b5f6b98e7cd2a3b3bdcda7 libasyncns-0.8.tar.gz"