From 6f9fd19499874c4ca78cf9e758b90b7ed3255efe Mon Sep 17 00:00:00 2001 From: Duncaen Date: Fri, 13 Nov 2015 00:46:18 +0100 Subject: [PATCH] luarocks: update to lua5.3 and add alternatives --- srcpkgs/luarocks/template | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/srcpkgs/luarocks/template b/srcpkgs/luarocks/template index c116f7c0a51..e2e591181e0 100644 --- a/srcpkgs/luarocks/template +++ b/srcpkgs/luarocks/template @@ -1,14 +1,20 @@ # Template file for 'luarocks' pkgname=luarocks version=2.2.2 -revision=2 +revision=3 noarch=yes build_style=configure -configure_args="--prefix=/usr" -hostmakedepends="curl lua52-devel" -makedepends="lua52-devel" -depends="lua52" -conf_files="/etc/luarocks/config-5.2.lua" +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" +makedepends="lua-devel" +depends="lua curl" +conf_files="/etc/luarocks/config-5.3.lua" short_desc="Package management for Lua modules" maintainer="Duncaen " license="MIT" @@ -16,6 +22,15 @@ homepage="http://luarocks.org/" distfiles="http://luarocks.org/releases/luarocks-${version}.tar.gz" checksum=4f0427706873f30d898aeb1dfb6001b8a3478e46a5249d015c061fe675a1f022 +alternatives=" + luarocks:luarocks:/usr/bin/luarocks-5.3 + luarocks:luarocks-admin:/usr/bin/luarocks-admin-5.3" + +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} }