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