summaryrefslogtreecommitdiff
path: root/user/lutok
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-02-20 21:08:54 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-05-01 17:05:53 -0500
commitaad9e708a3accbc4a94014098568459503bf6f24 (patch)
tree784c1b44beac27cbb9ba8c1c71e96e6a30a3ba18 /user/lutok
parenta9206eeeb178baef627c07767b85152aefb9d21c (diff)
downloadpackages-aad9e708a3accbc4a94014098568459503bf6f24.tar.gz
packages-aad9e708a3accbc4a94014098568459503bf6f24.tar.bz2
packages-aad9e708a3accbc4a94014098568459503bf6f24.tar.xz
packages-aad9e708a3accbc4a94014098568459503bf6f24.zip
system/lua5.3 (and rdeps): Move to user/
Diffstat (limited to 'user/lutok')
-rw-r--r--user/lutok/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/lutok/APKBUILD b/user/lutok/APKBUILD
new file mode 100644
index 000000000..21ee0ad32
--- /dev/null
+++ b/user/lutok/APKBUILD
@@ -0,0 +1,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 lua) \
+ LUA_LIBS=$(pkg-config --libs lua) \
+ ./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"