aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-13 18:16:53 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:43 +0000
commit0e0abb0c41bb198105c4c8f881bb53157f1c09d4 (patch)
tree18c4b230dde9a4500bcd5ca53ec21f894d5dd537
parent31646b5c23ab5f4e55bccddd23967a40394cff83 (diff)
downloadaports-0e0abb0c41bb198105c4c8f881bb53157f1c09d4.tar.bz2
aports-0e0abb0c41bb198105c4c8f881bb53157f1c09d4.tar.xz
main/popt: add test suite
-rw-r--r--main/popt/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/main/popt/APKBUILD b/main/popt/APKBUILD
index 23eede2874..b3b035ed48 100644
--- a/main/popt/APKBUILD
+++ b/main/popt/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=popt
pkgver=1.16
-pkgrel=6
+pkgrel=7
pkgdesc="A commandline option parser"
url="http://rpm5.org"
arch="all"
@@ -12,28 +12,31 @@ source="http://rpm5.org/files/$pkgname/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-dev"
prepare() {
- cd "$srcdir"/$pkgname-$pkgver
- update_config_sub || return 1
+ cd "$builddir"
+ default_prepare
+ update_config_sub
}
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--libdir=/lib \
- --disable-static \
- || return 1
- make || return 1
+ --disable-static
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
- make DESTDIR=$pkgdir install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-md5sums="3743beefa3dd6247a73f8f7a32c14c33 popt-1.16.tar.gz"
-sha256sums="e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8 popt-1.16.tar.gz"
sha512sums="bae2dd4e5d682ef023fdc77ae60c4aad01a3a576d45af9d78d22490c11e410e60edda37ede171920746d4ae0d5de3c060d15cecfd41ba75b727a811be828d694 popt-1.16.tar.gz"