diff --git a/srcpkgs/lua-BitOp/template b/srcpkgs/lua-BitOp/template new file mode 100644 index 0000000000..23123ef964 --- /dev/null +++ b/srcpkgs/lua-BitOp/template @@ -0,0 +1,22 @@ +# Template file for 'lua-BitOp' +pkgname=lua-BitOp +version=1.0.2 +revision=1 +makedepends="lua-devel>=5.2 lua>=5.2" +hostmakedepends="lua>=5.2" +depends="lua>=5.2" +short_desc="C extension module for Lua which adds bitwise operations on numbers" +maintainer="Tj Vanderpoel (bougyman) " +license="MIT" +homepage="http://bitop.luajit.org/" +distfiles="${homepage}/download/LuaBitOp-${version}.tar.gz" +checksum=1207c9293dcd52eb9dca6538d1b87352bd510f4e760938f5048433f7f272ce99 +build_style=gnu-makefile +wrksrc="LuaBitOp-${version}" + +do_install() { + mod_path="${DESTDIR}$(lua installpath.lua bit)" + lua_path=$(dirname $mod_path) + install -dm0755 "$lua_path" + install -p bit.so "$mod_path" +} diff --git a/srcpkgs/lua-MessagePack/template b/srcpkgs/lua-MessagePack/template new file mode 100644 index 0000000000..617f33b5a4 --- /dev/null +++ b/srcpkgs/lua-MessagePack/template @@ -0,0 +1,19 @@ +# Template file for 'lua-MessagePack' +pkgname=lua-MessagePack +version=0.3.1 +revision=1 +hostmakedepends="lua>=5.2" +makedepends="lua>=5.2" +depends="lua>=5.2" +short_desc="A pure Lua implementation of msgpack.org" +maintainer="Tj Vanderpoel (bougyman) " +license="MIT" +homepage="https://github.com/fperrad/lua-MessagePack" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=2cc1e2458d0f1eee8f02263848fa5055894303c056fd2e49aa9c3fb54ccbb5a0 + +do_install() { + make PREFIX=/usr DESTDIR="${DESTDIR}" LUAVER=5.2 install +} + + diff --git a/srcpkgs/lua-lpeg/template b/srcpkgs/lua-lpeg/template new file mode 100644 index 0000000000..19a9657d87 --- /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=${XBPS_CROSS_BASE}/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 +}