75 lines
1.7 KiB
Bash
75 lines
1.7 KiB
Bash
# Template file for 'lua54-luafilesystem'
|
|
pkgname=lua54-luafilesystem
|
|
version=1.8.0
|
|
revision=1
|
|
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="Orphaned <orphan@voidlinux.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
|
|
}
|