aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-toml
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-02-25 16:30:40 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-02-25 16:30:40 +0100
commit2d4a3339e59800cba942c9ebaae4795362448e5b (patch)
tree862c89cf48e4468838fb9978e0fb7fb4839ee36c /community/lua-toml
parent773439923a41952fe3c629f58f3db7891bc5deb3 (diff)
downloadaports-2d4a3339e59800cba942c9ebaae4795362448e5b.tar.bz2
aports-2d4a3339e59800cba942c9ebaae4795362448e5b.tar.xz
community/lua-toml: move from testing
Diffstat (limited to 'community/lua-toml')
-rw-r--r--community/lua-toml/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/lua-toml/APKBUILD b/community/lua-toml/APKBUILD
new file mode 100644
index 0000000000..9cc1c56b38
--- /dev/null
+++ b/community/lua-toml/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=lua-toml
+pkgver=1.0
+pkgrel=0
+pkgdesc="TOML decoder/encoder for Lua"
+url="https://github.com/jonstoler/lua-toml"
+arch="noarch"
+license="Happy"
+depends=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/jonstoler/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+_luaversions="5.1 5.2 5.3"
+for _v in $_luaversions; do
+ subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage"
+done
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_subpackage() {
+ local lver="${subpkgname:3:3}"
+ pkgdesc="$pkgdesc $lver"
+ depends="lua$lver"
+ install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+
+ cd "$builddir"
+ install -m 644 -D toml.lua "$subpkgdir"/usr/share/lua/$lver/toml.lua
+}
+
+md5sums="00422b0ef80b8903706360761fe204a1 lua-toml-1.0.tar.gz"
+sha256sums="4c81ae8c338d3da3d7007978f4ec2c736ea89448beaa5583fba7092e46a90e0d lua-toml-1.0.tar.gz"
+sha512sums="f04ed6f26f47d6492c7a21c310da09b1091476724022c32b81a5492713340a4571bc04c51f34dded73f4f1cf1085dbe08e280356b0f1fa88ef0efefd0685c77e lua-toml-1.0.tar.gz"