diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2020-04-29 19:01:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2020-04-29 19:15:38 +0000 |
commit | 59e37c7f6d3da19f5a14aa07e02f06e23f29f40e (patch) | |
tree | 63c538bd99f29e477d12048e1c721f8a1eae194c /main/lua-penlight | |
parent | aa584d7c895a72b36e6d72e13966bab9c4444cc4 (diff) | |
download | aports-59e37c7f6d3da19f5a14aa07e02f06e23f29f40e.tar.bz2 aports-59e37c7f6d3da19f5a14aa07e02f06e23f29f40e.tar.xz |
main/lua-penlight: reintroduce the subpackages for lua versions
Add subpackages for each lua version with the right direct dependency of
lua-filesystem. This avoids surprises and is more robust than rely on
indirect install_if in lua-filesystem.
It fixes the dependency chain for aconf that has no direct dependency of
lua interpreter, but uses uwsgi-lua.
Fixes commit b106a06b4e1f (main/lua-penlight: modernize abuild, remove
subpkgs, add rock_manifest, 2018-04-16)
Diffstat (limited to 'main/lua-penlight')
-rw-r--r-- | main/lua-penlight/APKBUILD | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/main/lua-penlight/APKBUILD b/main/lua-penlight/APKBUILD index 2863b95200..7ed180dc79 100644 --- a/main/lua-penlight/APKBUILD +++ b/main/lua-penlight/APKBUILD @@ -2,7 +2,7 @@ pkgname=lua-penlight _rockname=penlight pkgver=1.7.0 -pkgrel=0 +pkgrel=1 pkgdesc="Lua libraries for extended operations on tables, lists and strings" options="!check" # Requires lua-coveralls url="http://stevedonovan.github.io/Penlight" @@ -20,7 +20,7 @@ replaces="$pkgname-shared" # for backward compatibility _luaversions="5.1 5.2 5.3" for _v in $_luaversions; do checkdepends="$checkdepends lua$_v" - provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel" # for backward compatibility + subpackages="$subpackages lua$_v-penlight:_split" done check() { @@ -43,4 +43,16 @@ package() { echo 'rock_manifest = {}' > "$rockdir"/rock_manifest } +_split() { + local _lua=${subpkgname%%-*} + local _ver=${_lua#lua} + pkgdesc="Lua $—ver libraries for extended operations on tables, lists and strings" + depends="${_lua}-filesystem" + mkdir -p "$subpkgdir"/usr/share/lua/$_ver + + # keep this so abuild pulls in the right dependency with the common + # files + ln -s ../common/pl "$subpkgdir"/usr/share/lua/$_ver/pl +} + sha512sums="edeb09307c9feb5da6bccd82216a6ad71db988c433245d72d28abb6c555004f77eebba556928b0912937b29ef93e065ad491368041e17730610813de8e595d7d penlight-1.7.0.tar.gz" |