40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
# Template file for 'luarocks-lua51'
|
|
pkgname=luarocks-lua51
|
|
version=2.4.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc=${pkgname%-*}-${version}
|
|
build_style=configure
|
|
configure_args="
|
|
--prefix=/usr
|
|
--sysconfdir=/etc/luarocks
|
|
--lua-version=5.1
|
|
--lua-suffix=5.1
|
|
--with-lua-include=/usr/include/lua5.1
|
|
--with-downloader=curl
|
|
--versioned-rocks-dir"
|
|
hostmakedepends="lua51-devel"
|
|
depends="lua51 curl"
|
|
conf_files="/etc/luarocks/config-5.1.lua"
|
|
short_desc="Package management for Lua modules - Lua 5.1"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="MIT"
|
|
homepage="http://luarocks.org/"
|
|
distfiles="http://luarocks.org/releases/luarocks-${version}.tar.gz"
|
|
checksum=e429e0af9764bfd5cb640cac40f9d4ed1023fa17c052dff82ed0a41c05f3dcf9
|
|
|
|
alternatives="
|
|
luarocks:luarocks:/usr/bin/luarocks-5.1
|
|
luarocks:luarocks-admin:/usr/bin/luarocks-admin-5.1"
|
|
|
|
pre_configure() {
|
|
sed -i -e '/unzip/d' configure
|
|
}
|
|
pre_install() {
|
|
sed -i -e 's;env lua;env lua5.1;g' src/bin/luarocks{,-admin}
|
|
}
|
|
post_install() {
|
|
vlicense COPYING
|
|
rm -rfv ${DESTDIR}/usr/bin/luarocks{,-admin}
|
|
}
|