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'
|
# Template file for 'lua54-zlib'
|
||||||
pkgname=lua-zlib
|
pkgname=lua54-zlib
|
||||||
version=1.2
|
version=1.2
|
||||||
revision=1
|
revision=2
|
||||||
|
wrksrc="lua-zlib-${version}"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="lua51-devel lua52-devel lua-devel zlib-devel"
|
makedepends="lua51-devel lua52-devel lua53-devel lua54-devel zlib-devel"
|
||||||
short_desc="Zlib streamng interface for lua"
|
_desc="Zlib streamng interface for lua"
|
||||||
|
short_desc="${_desc} (5.4.x)"
|
||||||
maintainer="John Regan <john@jrjrtech.com>"
|
maintainer="John Regan <john@jrjrtech.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/brimworks/lua-zlib/"
|
homepage="https://github.com/brimworks/lua-zlib/"
|
||||||
|
@ -17,10 +19,11 @@ post_extract() {
|
||||||
mv * lua51 || true
|
mv * lua51 || true
|
||||||
cp -a lua51 lua52
|
cp -a lua51 lua52
|
||||||
cp -a lua51 lua53
|
cp -a lua51 lua53
|
||||||
|
cp -a lua51 lua54
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
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//.}
|
cd lua${luaver//.}
|
||||||
make \
|
make \
|
||||||
|
@ -37,7 +40,7 @@ do_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
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})"
|
mkdir -p "${DESTDIR}/$(pkg-config --variable=INSTALL_CMOD lua${luaver})"
|
||||||
cd lua${luaver//.}
|
cd lua${luaver//.}
|
||||||
|
@ -57,7 +60,7 @@ do_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
lua51-zlib_package() {
|
lua51-zlib_package() {
|
||||||
short_desc+=" - Lua 5.1"
|
short_desc="${_desc} (5.1.x)"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/lua/5.1
|
vmove usr/lib/lua/5.1
|
||||||
vlicense "${wrksrc}/lua51/README"
|
vlicense "${wrksrc}/lua51/README"
|
||||||
|
@ -65,9 +68,23 @@ lua51-zlib_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
lua52-zlib_package() {
|
lua52-zlib_package() {
|
||||||
short_desc+=" - Lua 5.2"
|
short_desc="${_desc} (5.2.x)"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/lua/5.2
|
vmove usr/lib/lua/5.2
|
||||||
vlicense "${wrksrc}/lua52/README"
|
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