aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtermkey
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-19 01:04:50 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-19 01:06:00 +0200
commitede8486c7fe98ccca811270633068b10265c991a (patch)
tree2b08ebb9fd98e2d395335845fb616b3d2203f9b6 /testing/libtermkey
parent9bac7ff5e4709c7b7ca3f59ce9eb9501233018e4 (diff)
downloadaports-ede8486c7fe98ccca811270633068b10265c991a.tar.bz2
aports-ede8486c7fe98ccca811270633068b10265c991a.tar.xz
testing/libtermkey: improve abuild, run tests
Diffstat (limited to 'testing/libtermkey')
-rw-r--r--testing/libtermkey/APKBUILD18
1 files changed, 10 insertions, 8 deletions
diff --git a/testing/libtermkey/APKBUILD b/testing/libtermkey/APKBUILD
index 551da0288e..55e2c6f9b7 100644
--- a/testing/libtermkey/APKBUILD
+++ b/testing/libtermkey/APKBUILD
@@ -8,21 +8,23 @@ url="http://www.leonerd.org.uk/code/libtermkey"
arch="all"
license="MIT"
depends=""
-depends_dev="libtool unibilium-dev"
-makedepends="$depends_dev"
-install=""
+depends_dev="unibilium-dev"
+makedepends="$depends_dev libtool perl"
subpackages="$pkgname-doc $pkgname-dev"
-source="http://www.leonerd.org.uk/code/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+source="http://www.leonerd.org.uk/code/$pkgname/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
-_builddir="$srcdir"/"$pkgname"-"$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
+
make PREFIX=/usr || return 1
+ make test
}
package() {
- cd "$_builddir"
- make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+
+ make PREFIX=/usr DESTDIR="$pkgdir" install
}
md5sums="3be2e3e5a851a49cc5e8567ac108b520 libtermkey-0.18.tar.gz"