void-packages/srcpkgs/luarocks-lua52/template

39 lines
1015 B
Bash
Raw Normal View History

2015-11-13 00:46:58 +01:00
# Template file for 'luarocks-lua52'
pkgname=luarocks-lua52
2016-01-10 16:27:00 +01:00
version=2.3.0
revision=1
2015-11-13 00:46:58 +01:00
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"
2015-11-13 00:46:58 +01:00
makedepends="lua52-devel"
depends="lua52 curl"
conf_files="/etc/luarocks/config-5.2.lua"
short_desc="Package management for Lua modules - Lua 5.2"
2015-11-13 00:46:58 +01:00
maintainer="Duncaen <mail@duncano.de>"
license="MIT"
homepage="http://luarocks.org/"
distfiles="http://luarocks.org/releases/luarocks-${version}.tar.gz"
2016-01-10 16:27:00 +01:00
checksum=68e38feeb66052e29ad1935a71b875194ed8b9c67c2223af5f4d4e3e2464ed97
2015-11-13 00:46:58 +01:00
alternatives="
luarocks:luarocks:/usr/bin/luarocks-5.2
luarocks:luarocks-admin:/usr/bin/luarocks-admin-5.2"
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}
}