void-packages/srcpkgs/luarocks-lua51/template

38 lines
989 B
Bash
Raw Normal View History

2015-11-13 00:46:46 +01:00
# Template file for 'luarocks-lua51'
pkgname=luarocks-lua51
version=2.2.2
revision=2
2015-11-13 00:46:46 +01:00
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"
2015-11-13 00:46:46 +01:00
depends="lua51 curl"
conf_files="/etc/luarocks/config-5.1.lua"
short_desc="Package management for Lua modules - Lua 5.1"
maintainer="Duncaen <mail@duncano.de>"
license="MIT"
homepage="http://luarocks.org/"
distfiles="http://luarocks.org/releases/luarocks-${version}.tar.gz"
checksum=4f0427706873f30d898aeb1dfb6001b8a3478e46a5249d015c061fe675a1f022
alternatives="
luarocks:luarocks:/usr/bin/luarocks-5.1
luarocks:luarocks-admin:/usr/bin/luarocks-admin-5.1"
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}
}