summaryrefslogtreecommitdiff
path: root/system/lutok/APKBUILD
blob: 4ee59e3861ee6240fec1fb9e1c30fba733a49839 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: 
pkgname=lutok
pkgver=0.4
pkgrel=2
pkgdesc="Lightweight C++ API for Lua"
url="https://github.com/jmmv/lutok"
arch="all"
license="BSD-3-Clause"
depends_dev="lua5.3-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/jmmv/lutok/releases/download/lutok-$pkgver/lutok-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	LUA_CFLAGS=$(pkg-config --cflags lua5.3) \
		LUA_LIBS=$(pkg-config --libs lua5.3) \
		./configure \
			--build=$CBUILD \
			--host=$CHOST \
			--prefix=/usr \
			--sysconfdir=/etc \
			--mandir=/usr/share/man \
			--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="664f30099bfbb30978e24068a9232a4ff1b5b1839c601bf784f35f6bb1394558067495093a3b0343c94e756d2e4186a32a8227baf5934c15c45905f7c0a5d19c  lutok-0.4.tar.gz"