luarocks: add 5.4 support, rename default to luarocks-lua53
This commit is contained in:
parent
c064a98cef
commit
8fe597380f
5 changed files with 37 additions and 12 deletions
1
srcpkgs/luarocks
Symbolic link
1
srcpkgs/luarocks
Symbolic link
|
@ -0,0 +1 @@
|
|||
luarocks-lua53
|
|
@ -1 +1 @@
|
|||
luarocks
|
||||
luarocks-lua53
|
|
@ -1 +1 @@
|
|||
luarocks
|
||||
luarocks-lua53
|
|
@ -1,8 +1,9 @@
|
|||
# Template file for 'luarocks'
|
||||
pkgname=luarocks
|
||||
# Template file for 'luarocks-lua53'
|
||||
pkgname=luarocks-lua53
|
||||
version=3.3.1
|
||||
revision=1
|
||||
revision=2
|
||||
archs=noarch
|
||||
wrksrc=luarocks-${version}
|
||||
build_style=configure
|
||||
configure_args="
|
||||
--prefix=/usr
|
||||
|
@ -10,9 +11,10 @@ configure_args="
|
|||
--lua-version=5.3
|
||||
--with-lua-include=/usr/include/lua5.3
|
||||
--versioned-rocks-dir"
|
||||
hostmakedepends="lua-devel"
|
||||
depends="lua curl unzip"
|
||||
short_desc="Package management for Lua modules"
|
||||
hostmakedepends="lua53-devel"
|
||||
depends="lua53 curl unzip"
|
||||
_desc="Package management for Lua modules"
|
||||
short_desc="${_desc} (5.3.x)"
|
||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||
license="MIT"
|
||||
homepage="https://luarocks.org/"
|
||||
|
@ -29,7 +31,7 @@ post_extract() {
|
|||
}
|
||||
|
||||
post_build() {
|
||||
for lv in 5.1 5.2; do
|
||||
for lv in 5.1 5.2 5.4; do
|
||||
make LUA_VERSION=$lv LUA_INTERPRETER=lua$lv \
|
||||
LUA_INCDIR=/usr/include/lua$lv ./build/config-$lv.lua
|
||||
done
|
||||
|
@ -43,7 +45,7 @@ post_install() {
|
|||
vlicense COPYING
|
||||
|
||||
vmkdir usr/bin
|
||||
for lv in 5.1 5.2; do
|
||||
for lv in 5.1 5.2 5.4; do
|
||||
make DESTDIR="${DESTDIR}" LUA_VERSION=$lv install-config
|
||||
make DESTDIR="${DESTDIR}" LUA_VERSION=$lv install-config
|
||||
|
||||
|
@ -60,9 +62,24 @@ post_install() {
|
|||
mv ${DESTDIR}/usr/bin/luarocks-admin{,-5.3}
|
||||
}
|
||||
|
||||
luarocks-lua54_package() {
|
||||
archs=noarch
|
||||
short_desc="${_desc} (5.4.x)"
|
||||
depends="${sourcepkg}>=${version}_${revision} lua54"
|
||||
conf_files="/etc/luarocks/config-5.4.lua"
|
||||
alternatives="
|
||||
luarocks:luarocks:/usr/bin/luarocks-5.4
|
||||
luarocks:luarocks-admin:/usr/bin/luarocks-admin-5.4"
|
||||
pkg_install() {
|
||||
vmove usr/bin/luarocks-5.4
|
||||
vmove usr/bin/luarocks-admin-5.4
|
||||
vmove etc/luarocks/config-5.4.lua
|
||||
}
|
||||
}
|
||||
|
||||
luarocks-lua52_package() {
|
||||
archs=noarch
|
||||
short_desc+=" - Lua52"
|
||||
short_desc="${_desc} (5.2.x)"
|
||||
depends="${sourcepkg}>=${version}_${revision} lua52"
|
||||
conf_files="/etc/luarocks/config-5.2.lua"
|
||||
alternatives="
|
||||
|
@ -77,7 +94,7 @@ luarocks-lua52_package() {
|
|||
|
||||
luarocks-lua51_package() {
|
||||
archs=noarch
|
||||
short_desc+=" - Lua51"
|
||||
short_desc="${_desc} (5.1.x)"
|
||||
depends="${sourcepkg}>=${version}_${revision} lua51"
|
||||
conf_files="/etc/luarocks/config-5.1.lua"
|
||||
alternatives="
|
||||
|
@ -89,3 +106,9 @@ luarocks-lua51_package() {
|
|||
vmove etc/luarocks/config-5.1.lua
|
||||
}
|
||||
}
|
||||
|
||||
luarocks_package() {
|
||||
depends="luarocks-lua53>=${version}_${revision}"
|
||||
short_desc+="${_desc} (5.3.x) (transitional dummy package)"
|
||||
build_style=meta
|
||||
}
|
1
srcpkgs/luarocks-lua54
Symbolic link
1
srcpkgs/luarocks-lua54
Symbolic link
|
@ -0,0 +1 @@
|
|||
luarocks-lua53
|
Loading…
Reference in a new issue