diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-01 21:51:29 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-01 21:55:24 +0100 |
commit | ba94821a2672a4991198da3a44460ff9aecc6cb8 (patch) | |
tree | 6afef13c89cbeb870bf454a42d013365fe7b1c3a /main/lua-stdlib-debug | |
parent | 63a57eb260c3a763969e65faf78750b6cb00228d (diff) | |
download | aports-ba94821a2672a4991198da3a44460ff9aecc6cb8.tar.bz2 aports-ba94821a2672a4991198da3a44460ff9aecc6cb8.tar.xz |
main/lua-stdlib-debug: install into lua/common, remove subpkgs
Diffstat (limited to 'main/lua-stdlib-debug')
-rw-r--r-- | main/lua-stdlib-debug/APKBUILD | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/main/lua-stdlib-debug/APKBUILD b/main/lua-stdlib-debug/APKBUILD index eb7e9b5a27..8ca9bc8ca0 100644 --- a/main/lua-stdlib-debug/APKBUILD +++ b/main/lua-stdlib-debug/APKBUILD @@ -3,34 +3,25 @@ pkgname=lua-stdlib-debug _rockname=std._debug pkgver=1.0 -pkgrel=1 +pkgrel=2 pkgdesc="Manage an overall debug state, and associated hint substates" url="https://lua-stdlib.github.io/_debug/" arch="noarch" license="MIT" depends="lua" -subpackages="" +provides="" 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" + provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel" # for backward compatibility 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" + local lmod_dir="$pkgdir/usr/share/lua/common" + local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$pkgver-1" mkdir -p "$lmod_dir" cp -r "$builddir"/lib/std "$lmod_dir"/ |