diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-01 21:54:00 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-01 21:55:24 +0100 |
commit | 0df10d1f95a5f57aa581f0a839ccb10b19c53074 (patch) | |
tree | 73a2bc8320c7e39b24b7b786c82eadef22a8ddfd /main/lua-stdlib-normalize | |
parent | ba94821a2672a4991198da3a44460ff9aecc6cb8 (diff) | |
download | aports-0df10d1f95a5f57aa581f0a839ccb10b19c53074.tar.bz2 aports-0df10d1f95a5f57aa581f0a839ccb10b19c53074.tar.xz |
main/lua-stdlib-normalize: install into lua/common, remove subpkgs
Diffstat (limited to 'main/lua-stdlib-normalize')
-rw-r--r-- | main/lua-stdlib-normalize/APKBUILD | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/main/lua-stdlib-normalize/APKBUILD b/main/lua-stdlib-normalize/APKBUILD index 0b8edc4d24..89ee5fa7f1 100644 --- a/main/lua-stdlib-normalize/APKBUILD +++ b/main/lua-stdlib-normalize/APKBUILD @@ -3,34 +3,25 @@ pkgname=lua-stdlib-normalize _rockname=std.normalize pkgver=2.0.1 -pkgrel=0 +pkgrel=1 pkgdesc="Normalized Lua functions" url="https://lua-stdlib.github.io/normalize/" arch="noarch" license="MIT" -depends="lua" -subpackages="" +depends="lua lua-stdlib-debug" +provides="" options="!check" # FIXME: requires lua-specl that we don't have yet source="$pkgname-$pkgver.tar.gz::https://github.com/lua-stdlib/normalize/archive/v$pkgver.tar.gz" builddir="$srcdir/normalize-$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 lua$lver-stdlib-debug" - 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"/ |