Commit 8db40d5e authored by A. Wilcox's avatar A. Wilcox Committed by Timo Teräs

main/lutok: add test suite, modernise

parent 786147fe
# 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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment