aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-uuid
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-09-23 12:26:48 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-09-23 12:27:44 +0200
commit7346ec2ebc1c2a1a0d994fd03bda966eb6f64136 (patch)
treeeda850a5a72577e56bcaf3fbdd9c0f775f982bdb /testing/lua-uuid
parent72fa00235d614ad73d4eb0d8add244350e414a02 (diff)
downloadaports-7346ec2ebc1c2a1a0d994fd03bda966eb6f64136.tar.bz2
aports-7346ec2ebc1c2a1a0d994fd03bda966eb6f64136.tar.xz
testing/lua-uuid: new aport
Diffstat (limited to 'testing/lua-uuid')
-rw-r--r--testing/lua-uuid/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/lua-uuid/APKBUILD b/testing/lua-uuid/APKBUILD
new file mode 100644
index 0000000000..897abae789
--- /dev/null
+++ b/testing/lua-uuid/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=lua-uuid
+_realname=uuid
+pkgver=0.2.0
+pkgrel=0
+pkgdesc="A pure Lua uuid generator (modified from a Rackspace module)"
+url="http://tieske.github.io/uuid/"
+arch="noarch"
+license="Apache 2.0"
+depends=""
+makedepends=""
+install=""
+options="!check"
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/Tieske/uuid/archive/version_$pkgver.tar.gz"
+builddir="$srcdir/uuid-version_$pkgver"
+
+_luaversions="5.1 5.2 5.3"
+for _v in $_luaversions; do
+ makedepends="$makedepends lua$_v-dev"
+ subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage"
+done
+
+build() {
+ return 0
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_subpackage() {
+ local lver="${subpkgname:3:3}"
+ pkgdesc="$pkgdesc (for Lua $lver)"
+ depends="lua$lver"
+ install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+
+ install -Dm644 "$builddir"/src/uuid.lua \
+ "$subpkgdir"/usr/share/lua/$lver/uuid.lua
+}
+
+sha512sums="1117c76dbbabee6de01d1657339236810822040e20afd974dec302b9d2035ca087d33ef47029c6184203c3e694cc9282a303ce19eadffc71b0f48c6a4a5ef5b0 lua-uuid-0.2.0.tar.gz"