From 909a07663b7ade1ec9d7ec65081b3c78e10b5540 Mon Sep 17 00:00:00 2001 From: TJ Vanderpoel Date: Sat, 13 Dec 2014 19:55:53 +0000 Subject: [PATCH] New package: lua-lpeg-0.12.1 --- srcpkgs/lua-lpeg/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/lua-lpeg/template diff --git a/srcpkgs/lua-lpeg/template b/srcpkgs/lua-lpeg/template new file mode 100644 index 00000000000..b9bd21f2683 --- /dev/null +++ b/srcpkgs/lua-lpeg/template @@ -0,0 +1,22 @@ +# Template file for 'lua-lpeg' +pkgname=lua-lpeg +_lualibname=lpeg +version=0.12.1 +revision=1 +hostmakedepends="lua>=5.2" +makedepends="lua-devel>=5.2" +depends="lua>=5.2" +short_desc="Pattern-matching library for Lua based on Parsing Expression Grammars" +maintainer="Tj Vanderpoel (bougyman) " +license="MIT" +homepage="http://www.inf.puc-rio.br/~roberto/lpeg/" +distfiles="${homepage}/${_lualibname}-${version}.tar.gz" +wrksrc=${_lualibname}-${version} +checksum=60c6752dd043034c01929b04dab377d139f53bc098710cf735be53dd603fa22a +build_style=gnu-makefile +make_build_args=" LUADIR=/usr/include" + +do_install() { + install -Dm755 ${_lualibname}.so "${DESTDIR}"/usr/lib/lua/5.2/${_lualibname}.so + install -Dm644 re.lua "${DESTDIR}"/usr/share/lua/5.2/re.lua +}