diff options
| author | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-20 01:13:26 +0200 |
|---|---|---|
| committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-07-20 01:15:33 +0200 |
| commit | f537043d980ee1a72e3091d2cc9576cca5947507 (patch) | |
| tree | 221791e6b05ddf54b157d3e63afe4a5292fa51af /testing/lua-loadkit | |
| parent | 7f4fdea9680096d4056ee0d467869f5e4a3f82af (diff) | |
| download | aports-f537043d980ee1a72e3091d2cc9576cca5947507.tar.bz2 aports-f537043d980ee1a72e3091d2cc9576cca5947507.tar.xz | |
testing/lua-loadkit: new aport
https://github.com/leafo/loadkit
Allows to load arbitrary files within the Lua package path
Diffstat (limited to 'testing/lua-loadkit')
| -rw-r--r-- | testing/lua-loadkit/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/lua-loadkit/APKBUILD b/testing/lua-loadkit/APKBUILD new file mode 100644 index 0000000000..ba7a487eb9 --- /dev/null +++ b/testing/lua-loadkit/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=lua-loadkit +_pkgname=loadkit +pkgver=1.1.0 +pkgrel=0 +pkgdesc="Allows to load arbitrary files within the Lua package path" +url="https://github.com/leafo/loadkit" +arch="noarch" +license="MIT" +subpackages="" +source="$pkgname-$pkgver.tar.gz::https://github.com/leafo/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" +# Tests require moonscript, but moonscript requires loadkit to run all tests. +options="!check" + +_luaversions="5.1 5.2 5.3" +for _v in $_luaversions; do + subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage" + checkdepends="$checkdepends lua$_v" +done + +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 -D -m 644 "$builddir"/loadkit.lua \ + "$subpkgdir"/usr/share/lua/$lver/loadkit.lua +} + +sha512sums="1d4405d8c2819f4293117df06b1587d190b9925fe77e4d055400b4610813b771b8d7f7fef78e5884ebd494b78fc51c94eb5b5b677b6ec532309b9b489e738457 lua-loadkit-1.1.0.tar.gz" |
