lua-zlib: add 5.4 support, properly version
This commit is contained in:
parent
d3dddc6b68
commit
3013a69312
|
@ -0,0 +1 @@
|
|||
lua54-zlib
|
|
@ -1 +1 @@
|
|||
lua-zlib
|
||||
lua54-zlib
|
|
@ -1 +1 @@
|
|||
lua-zlib
|
||||
lua54-zlib
|
|
@ -0,0 +1 @@
|
|||
lua54-zlib
|
|
@ -1,11 +1,13 @@
|
|||
# Template file for 'lua-zlib'
|
||||
pkgname=lua-zlib
|
||||
# Template file for 'lua54-zlib'
|
||||
pkgname=lua54-zlib
|
||||
version=1.2
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="lua-zlib-${version}"
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="lua51-devel lua52-devel lua-devel zlib-devel"
|
||||
short_desc="Zlib streamng interface for lua"
|
||||
makedepends="lua51-devel lua52-devel lua53-devel lua54-devel zlib-devel"
|
||||
_desc="Zlib streamng interface for lua"
|
||||
short_desc="${_desc} (5.4.x)"
|
||||
maintainer="John Regan <john@jrjrtech.com>"
|
||||
license="MIT"
|
||||
homepage="https://github.com/brimworks/lua-zlib/"
|
||||
|
@ -17,10 +19,11 @@ post_extract() {
|
|||
mv * lua51 || true
|
||||
cp -a lua51 lua52
|
||||
cp -a lua51 lua53
|
||||
cp -a lua51 lua54
|
||||
}
|
||||
|
||||
do_build() {
|
||||
for luaver in 5.1 5.2 5.3; do
|
||||
for luaver in 5.1 5.2 5.3 5.4; do
|
||||
(
|
||||
cd lua${luaver//.}
|
||||
make \
|
||||
|
@ -37,7 +40,7 @@ do_build() {
|
|||
}
|
||||
|
||||
do_install() {
|
||||
for luaver in 5.1 5.2 5.3; do
|
||||
for luaver in 5.1 5.2 5.3 5.4; do
|
||||
(
|
||||
mkdir -p "${DESTDIR}/$(pkg-config --variable=INSTALL_CMOD lua${luaver})"
|
||||
cd lua${luaver//.}
|
||||
|
@ -57,7 +60,7 @@ do_install() {
|
|||
}
|
||||
|
||||
lua51-zlib_package() {
|
||||
short_desc+=" - Lua 5.1"
|
||||
short_desc="${_desc} (5.1.x)"
|
||||
pkg_install() {
|
||||
vmove usr/lib/lua/5.1
|
||||
vlicense "${wrksrc}/lua51/README"
|
||||
|
@ -65,9 +68,23 @@ lua51-zlib_package() {
|
|||
}
|
||||
|
||||
lua52-zlib_package() {
|
||||
short_desc+=" - Lua 5.2"
|
||||
short_desc="${_desc} (5.2.x)"
|
||||
pkg_install() {
|
||||
vmove usr/lib/lua/5.2
|
||||
vlicense "${wrksrc}/lua52/README"
|
||||
}
|
||||
}
|
||||
|
||||
lua53-zlib_package() {
|
||||
short_desc="${_desc} (5.3.x)"
|
||||
pkg_install() {
|
||||
vmove usr/lib/lua/5.3
|
||||
vlicense "${wrksrc}/lua53/README"
|
||||
}
|
||||
}
|
||||
|
||||
lua-zlib_package() {
|
||||
depends="lua53-zlib>=${version}_${revision}"
|
||||
short_desc+="${_desc} (5.3.x) (transitional dummy package)"
|
||||
build_style=meta
|
||||
}
|
Loading…
Reference in New Issue