aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-lub
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-07 01:17:18 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-09 01:38:50 +0200
commit1ae1dfa58582fe9f116b9e935b70ca4100ed5e80 (patch)
tree487ce6c79c10a26d1215baea1bf206d2a8e41ba9 /main/lua-lub
parentb176244b05d52046a7264be01fd0e8b46d260463 (diff)
downloadaports-1ae1dfa58582fe9f116b9e935b70ca4100ed5e80.tar.bz2
aports-1ae1dfa58582fe9f116b9e935b70ca4100ed5e80.tar.xz
main/lua-lub: new aport
http://doc.lubyk.org/lub.html Lubyk base module for Lua This package is needed as a dependency for main/lua-yaml-1.1.2.
Diffstat (limited to 'main/lua-lub')
-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"