diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-29 15:04:25 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-29 15:12:41 +0100 |
commit | 8fcda6880b4eef6aa7ecab3415d90dd6b2cec071 (patch) | |
tree | c03df3cf7789e8d22436bd2c667c5c06e763c705 /main/lua-stdlib-debug | |
parent | df8e07500b98bb163c97ba67abf76264dac2b098 (diff) | |
download | aports-8fcda6880b4eef6aa7ecab3415d90dd6b2cec071.tar.bz2 aports-8fcda6880b4eef6aa7ecab3415d90dd6b2cec071.tar.xz |
main/lua-stdlib-debug: new aport
This aport is needed for main/lua-stdlib-normalize which is needed
for recent version of main/lua-lyaml.
Diffstat (limited to 'main/lua-stdlib-debug')
-rw-r--r-- | main/lua-stdlib-debug/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/main/lua-stdlib-debug/APKBUILD b/main/lua-stdlib-debug/APKBUILD new file mode 100644 index 0000000000..fa54e20476 --- /dev/null +++ b/main/lua-stdlib-debug/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=lua-stdlib-debug +_rockname=std._debug +pkgver=1.0 +pkgrel=0 +pkgdesc="Manage an overall debug state, and associated hint substates" +url="https://lua-stdlib.github.io/normalize" +arch="noarch" +license="MIT" +depends="lua" +subpackages="" +options="!check" # FIXME: requires lua-specl that we don't have yet +source="$pkgname-$pkgver.tar.gz::https://github.com/lua-stdlib/_debug/archive/v$pkgver.tar.gz" +builddir="$srcdir/_debug-$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 (for Lua $lver)" + depends="lua$lver" + install_if="$pkgname=$pkgver-r$pkgrel lua$lver" + + local lmod_dir="$subpkgdir/usr/share/lua/$lver" + local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_rockname/$pkgver-1" + + mkdir -p "$lmod_dir" + cp -r "$builddir"/lib/std "$lmod_dir"/ + + mkdir -p "$rockdir" + echo 'rock_manifest = {}' > "$rockdir"/rock_manifest +} + +sha512sums="ed9b5135489b35805f8d4f658d0b707d3e722ee4c1b6c7dea90d029b23923fb32640ffb20c4a7914cd6e6351edb26df9749256176757c7f031b1327d4bf42ec0 lua-stdlib-debug-1.0.tar.gz" |