aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-lub/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/lua-lub/APKBUILD')
-rw-r--r--main/lua-lub/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/lua-lub/APKBUILD b/main/lua-lub/APKBUILD
new file mode 100644
index 0000000000..70449d1e8f
--- /dev/null
+++ b/main/lua-lub/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=lua-lub
+_pkgname=lub
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="Lubyk base module for Lua"
+url="http://doc.lubyk.org/lub.html"
+arch="noarch"
+license="MIT"
+depends=""
+makedepends=""
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/lubyk/$_pkgname/archive/REL-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-REL-$pkgver"
+
+_luaversions="5.1 5.2 5.3"
+for _v in $_luaversions; do
+ makedepends="$makedepends lua$_v-dev"
+ subpackages="$subpackages lua$_v-$_pkgname:_subpackage"
+done
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_subpackage() {
+ local lver="${subpkgname:3:3}"
+ pkgdesc="$pkgdesc $lver"
+ depends="$depends lua$lver lua$lver-filesystem"
+ install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+
+ mkdir -p "$subpkgdir"/usr/share/lua/$lver
+ cp -r "$builddir"/lub "$subpkgdir"/usr/share/lua/$lver/
+}
+
+md5sums="093cbf163ef2fea60031aea2619ae4b9 lua-lub-1.1.0.tar.gz"
+sha256sums="355f427f28155c4cf3a9673aa24c3754ea782c1c5f2081cbc4c28c00ed69a0b7 lua-lub-1.1.0.tar.gz"
+sha512sums="46f18cfc12d919694ddba7ab875e579381cd964c18b91dfb46d4f8091b90fd7daef96eaf0e16bd4fb3e01962adb74eeed47259aac014ebf24f85955d99a873f3 lua-lub-1.1.0.tar.gz"