New package: luarocks-lua52-2.2.2
This commit is contained in:
parent
0f13793e00
commit
9dd1d9233f
1 changed files with 37 additions and 0 deletions
37
srcpkgs/luarocks-lua52/template
Normal file
37
srcpkgs/luarocks-lua52/template
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Template file for 'luarocks-lua52'
|
||||||
|
pkgname=luarocks-lua52
|
||||||
|
version=2.2.2
|
||||||
|
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"
|
||||||
|
makedepends="lua52-devel"
|
||||||
|
depends="lua52 curl"
|
||||||
|
conf_files="/etc/luarocks/config-5.2.lua"
|
||||||
|
short_desc="Package management for Lua modules"
|
||||||
|
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.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}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue