aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-21 00:34:34 -0500
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:52 +0000
commit8db40d5ec249ac61a06161ab5d328f887d17aee7 (patch)
treefc1c8792c0b55b64c01a00b18affde65bbcb5b12
parent786147fe44bb851758b9b16261a12d1010f65ba3 (diff)
downloadaports-8db40d5ec249ac61a06161ab5d328f887d17aee7.tar.bz2
aports-8db40d5ec249ac61a06161ab5d328f887d17aee7.tar.xz
main/lutok: add test suite, modernise
-rw-r--r--main/lutok/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/main/lutok/APKBUILD b/main/lutok/APKBUILD
index 30928607c4..bbb58a21a2 100644
--- a/main/lutok/APKBUILD
+++ b/main/lutok/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=lutok
pkgver=0.4
-pkgrel=0
+pkgrel=1
pkgdesc="lightweight C++ API for Lua"
url="https://github.com/jmmv/lutok"
arch="all"
@@ -16,9 +16,8 @@ builddir="$srcdir/lutok-$pkgver"
prepare() {
cd "$builddir"
- msg "$builddir"
- default_prepare || return 1
- update_config_sub || return 1
+ default_prepare
+ update_config_sub
}
build() {
@@ -29,14 +28,18 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make -j1 DESTDIR="$pkgdir" install || return 1
+ make -j1 DESTDIR="$pkgdir" install
}
md5sums="5da43895d9209f8c19d79433dd046b3f lutok-0.4.tar.gz"