aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-gversion
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-09-13 16:56:09 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-09-13 16:56:09 +0200
commite74c3b042eccd4dd181a7425809c12b8c8ab217d (patch)
tree26701b0a0a263e70f0b402d1300a1598846d9405 /main/lua-gversion
parent9394c2fedfa5976ee29803478a3c59953704eb86 (diff)
downloadaports-e74c3b042eccd4dd181a7425809c12b8c8ab217d.tar.bz2
aports-e74c3b042eccd4dd181a7425809c12b8c8ab217d.tar.xz
testing/lua-gversion: move to main
Diffstat (limited to 'main/lua-gversion')
-rw-r--r--main/lua-gversion/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/lua-gversion/APKBUILD b/main/lua-gversion/APKBUILD
new file mode 100644
index 0000000000..58acc89655
--- /dev/null
+++ b/main/lua-gversion/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=lua-gversion
+_pkgname=gversion.lua
+pkgver=0.1.0
+pkgrel=0
+pkgdesc="Lua library for Gentoo-style versioning format"
+url="https://github.com/jirutka/gversion.lua"
+arch="noarch"
+license="MIT"
+depends=""
+makedepends=""
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$_pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+_luaversions="5.1 5.2 5.3"
+for _v in $_luaversions; do
+ makedepends="$makedepends lua$_v-dev"
+ subpackages="$subpackages lua$_v-$_pkgname:_package"
+done
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_package() {
+ local lver="${subpkgname:3:3}"
+ pkgdesc="$pkgdesc (for lua-$lver)"
+ depends="lua$lver"
+ install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+
+ install -m 644 -D "$builddir"/src/gversion.lua \
+ "$subpkgdir"/usr/share/lua/$lver/gversion.lua
+}
+
+md5sums="50cbf9026ed55528d849458c7a5f1061 lua-gversion-0.1.0.tar.gz"
+sha256sums="ff93691c899384ec4db3eb2cace3ed690057e49517a66723abfc6cc2a3ecb81d lua-gversion-0.1.0.tar.gz"
+sha512sums="f03a4da00b93eab7bf040b4ad1b6a33fbebc186724db60d213823cf62632879186728a2615b7ff4206efe87c832a080de471ddf3e93b26e7f55e4980f4a47b4e lua-gversion-0.1.0.tar.gz"