void-packages/srcpkgs/luarocks/template
2018-02-07 20:57:07 +01:00

38 lines
993 B
Bash

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