luafilesystem: adopt, update to 1.8.0, add all versions

This commit is contained in:
q66 2020-07-01 18:11:57 +02:00
parent 5aa22e5beb
commit 1d864d8f7e
7 changed files with 79 additions and 22 deletions

1
srcpkgs/lua51-luafilesystem Symbolic link
View File

@ -0,0 +1 @@
lua54-luafilesystem

1
srcpkgs/lua52-luafilesystem Symbolic link
View File

@ -0,0 +1 @@
lua54-luafilesystem

1
srcpkgs/lua53-luafilesystem Symbolic link
View File

@ -0,0 +1 @@
lua54-luafilesystem

View File

@ -0,0 +1,75 @@
# Template file for 'lua54-luafilesystem'
pkgname=lua54-luafilesystem
version=1.8.0
revision=1
wrksrc="luafilesystem-${version//./_}"
makedepends="lua51-devel lua52-devel lua53-devel lua54-devel"
depends="lua54"
_desc="File System Library for the Lua Programming Language"
short_desc="${_desc} (5.4.x)"
maintainer="q66 <daniel@octaforge.org>"
license="MIT"
homepage="http://keplerproject.github.com/luafilesystem"
distfiles="https://github.com/keplerproject/luafilesystem/archive/v${version//./_}.tar.gz"
checksum=16d17c788b8093f2047325343f5e9b74cccb1ea96001e45914a58bbae8932495
post_extract() {
cd "${wrksrc}"
mkdir -p lua5.1
mv * lua5.1 || true
cp -a lua5.1 lua5.2
cp -a lua5.1 lua5.3
cp -a lua5.1 lua5.4
}
do_build() {
for luaver in 5.1 5.2 5.3 5.4; do
pushd lua${luaver}
make CC=$CC LUA_VERSION=${luaver} ${make_build_args} ${makejobs} \
LUA_INC=-I${XBPS_CROSS_BASE}/usr/include/lua${luaver}
popd
done
}
do_install() {
for luaver in 5.1 5.2 5.3 5.4; do
pushd lua${luaver}
make PREFIX=${DESTDIR}/usr LUA_VERSION=${luaver} install
popd
done
vlicense lua5.4/LICENSE
}
lua51-luafilesystem_package() {
depends="lua51"
short_desc="${_desc} (5.1.x)"
pkg_install() {
vlicense "${wrksrc}/lua5.1/LICENSE"
vmove usr/lib/lua/5.1
}
}
lua52-luafilesystem_package() {
depends="lua52"
short_desc="${_desc} (5.2.x)"
pkg_install() {
vlicense "${wrksrc}/lua5.2/LICENSE"
vmove usr/lib/lua/5.2
}
}
lua53-luafilesystem_package() {
depends="lua53"
short_desc="${_desc} (5.3.x)"
pkg_install() {
vlicense "${wrksrc}/lua5.3/LICENSE"
vmove usr/lib/lua/5.3
}
}
luafilesystem_package() {
depends="lua51-luafilesystem>=${version}_${revision}"
short_desc="${_desc} (5.1.x) (transitional dummy package)"
build_style=meta
}

1
srcpkgs/luafilesystem Symbolic link
View File

@ -0,0 +1 @@
lua54-luafilesystem

View File

@ -1,22 +0,0 @@
# Template file for 'luafilesystem'
pkgname=luafilesystem
version=1.7.0.2
revision=1
wrksrc="$pkgname-${version//./_}"
makedepends="lua51-devel"
depends="lua51"
short_desc="File System Library for the Lua Programming Language"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://keplerproject.github.com/luafilesystem"
distfiles="https://github.com/keplerproject/${pkgname}/archive/v${version//./_}.tar.gz"
checksum=23b4883aeb4fb90b2d0f338659f33a631f9df7a7e67c54115775a77d4ac3cc59
do_build() {
make ${makejobs} CC="$CC" LUA_INC=${XBPS_CROSS_BASE}/usr/include/lua5.1
}
do_install() {
make PREFIX=${DESTDIR}/usr install
vlicense LICENSE
}