From 8fcda6880b4eef6aa7ecab3415d90dd6b2cec071 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 29 Dec 2017 15:04:25 +0100 Subject: 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. --- main/lua-stdlib-debug/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 main/lua-stdlib-debug/APKBUILD (limited to 'main') 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 +# Maintainer: Jakub Jirutka +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" -- cgit v1.2.3