diff --git a/srcpkgs/lua51-luaepnf b/srcpkgs/lua51-luaepnf new file mode 120000 index 00000000000..9d47c064ba0 --- /dev/null +++ b/srcpkgs/lua51-luaepnf @@ -0,0 +1 @@ +lua54-luaepnf \ No newline at end of file diff --git a/srcpkgs/lua52-luaepnf b/srcpkgs/lua52-luaepnf new file mode 120000 index 00000000000..9d47c064ba0 --- /dev/null +++ b/srcpkgs/lua52-luaepnf @@ -0,0 +1 @@ +lua54-luaepnf \ No newline at end of file diff --git a/srcpkgs/lua53-luaepnf b/srcpkgs/lua53-luaepnf new file mode 120000 index 00000000000..9d47c064ba0 --- /dev/null +++ b/srcpkgs/lua53-luaepnf @@ -0,0 +1 @@ +lua54-luaepnf \ No newline at end of file diff --git a/srcpkgs/lua54-luaepnf/template b/srcpkgs/lua54-luaepnf/template new file mode 100644 index 00000000000..06e20417236 --- /dev/null +++ b/srcpkgs/lua54-luaepnf/template @@ -0,0 +1,51 @@ +# Template file for 'lua54-luaepnf' +pkgname=lua54-luaepnf +version=0.3 +revision=1 +hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54" +depends="lua54 lua54-lpeg" +short_desc="Extended PEG Notation Format (easy grammars for LPeg)" +maintainer="Luciogi " +license="MIT" +homepage="https://github.com/siffiejoe/lua-luaepnf" +distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz" +checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9 + +_rockname=${pkgname#lua54-} +_rocksrel=scm-0 +_package() { + luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \ + make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec" +} + +do_install() { + _package 5.4 + sed -n '14,38p' README.md > LICENSE + vlicense LICENSE +} +lua53-luaepnf_package() { + build_style=meta + depends="lua53 lua53-lpeg" + pkg_install() { + _package 5.3 + vlicense LICENSE + } +} + +lua52-luaepnf_package() { + build_style=meta + depends="lua52 lua52-lpeg" + pkg_install() { + _package 5.2 + vlicense LICENSE + } +} + +lua51-luaepnf_package() { + build_style=meta + depends="lua51 lua51-lpeg" + pkg_install() { + _package 5.1 + vlicense LICENSE + } +}