diff --git a/srcpkgs/lua-stdlib-normalize/template b/srcpkgs/lua-stdlib-normalize/template new file mode 100644 index 00000000000..a23801d9136 --- /dev/null +++ b/srcpkgs/lua-stdlib-normalize/template @@ -0,0 +1,48 @@ +# Template file for 'lua-stdlib-normalize' +pkgname=lua-stdlib-normalize +version=2.0.2 +revision=1 +wrksrc=normalize-${version} +noarch=yes +depends="lua lua-stdlib-debug" +short_desc="Collection of normalized Lua functions (Lua 5.3)" +maintainer="Daniel Santana " +license="MIT" +homepage="https://lua-stdlib.github.io/normalize/" +distfiles="https://github.com/lua-stdlib/normalize/archive/v${version}.tar.gz" +checksum=7ca9bc7812a0581f421f29dcb996011575849e4acda3d1683aa27fe4ff8c2687 + +do_install() { + for _lua_version in 5.1 5.2 5.3; do + vmkdir usr/share/lua/$_lua_version/ + vcopy lib/std usr/share/lua/$_lua_version/ + done + vdoc NEWS.md + vdoc README.md + vdoc AUTHORS.md + vlicense LICENSE.md +} + +lua51-stdlib-normalize_package() { + depends="lua51 lua51-stdlib-debug" + short_desc="${short_desc/5.3/5.1}" + pkg_install() { + vmove usr/share/lua/5.1 + vdoc NEWS.md + vdoc README.md + vdoc AUTHORS.md + vlicense LICENSE.md + } +} + +lua52-stdlib-normalize_package() { + depends="lua52 lua52-stdlib-debug" + short_desc="${short_desc/5.3/5.2}" + pkg_install() { + vmove usr/share/lua/5.2 + vdoc NEWS.md + vdoc README.md + vdoc AUTHORS.md + vlicense LICENSE.md + } +} diff --git a/srcpkgs/lua51-stdlib-normalize b/srcpkgs/lua51-stdlib-normalize new file mode 120000 index 00000000000..b377e6adb0b --- /dev/null +++ b/srcpkgs/lua51-stdlib-normalize @@ -0,0 +1 @@ +lua-stdlib-normalize \ No newline at end of file diff --git a/srcpkgs/lua52-stdlib-normalize b/srcpkgs/lua52-stdlib-normalize new file mode 120000 index 00000000000..b377e6adb0b --- /dev/null +++ b/srcpkgs/lua52-stdlib-normalize @@ -0,0 +1 @@ +lua-stdlib-normalize \ No newline at end of file