diff --git a/srcpkgs/lua51-penlight b/srcpkgs/lua51-penlight new file mode 120000 index 00000000000..982fe9ad102 --- /dev/null +++ b/srcpkgs/lua51-penlight @@ -0,0 +1 @@ +lua54-penlight \ No newline at end of file diff --git a/srcpkgs/lua52-penlight b/srcpkgs/lua52-penlight new file mode 120000 index 00000000000..982fe9ad102 --- /dev/null +++ b/srcpkgs/lua52-penlight @@ -0,0 +1 @@ +lua54-penlight \ No newline at end of file diff --git a/srcpkgs/lua53-penlight b/srcpkgs/lua53-penlight new file mode 120000 index 00000000000..982fe9ad102 --- /dev/null +++ b/srcpkgs/lua53-penlight @@ -0,0 +1 @@ +lua54-penlight \ No newline at end of file diff --git a/srcpkgs/lua54-penlight/template b/srcpkgs/lua54-penlight/template new file mode 100644 index 00000000000..da546fa9a69 --- /dev/null +++ b/srcpkgs/lua54-penlight/template @@ -0,0 +1,52 @@ +# Template file for 'lua54-penlight' +pkgname=lua54-penlight +version=1.14.0 +revision=1 +hostmakedepends="lua54 lua53 lua52 lua51 zip luarocks-lua54" +makedepends="lua54-devel lua53-devel lua52-devel lua51-devel lua54-luafilesystem" +depends="lua54 lua54-luafilesystem" +short_desc="Lua libraries focusing on input data handling" +maintainer="Luciogi " +license="MIT" +homepage="https://github.com/lunarmodules/Penlight" +distfiles="https://github.com/lunarmodules/Penlight/archive/refs/tags/${version}.tar.gz" +checksum=2387431c0e83c4189cccb35b989141a3280d735cb5d42bacf3451af9869bebf7 + +_rockname=${pkgname#lua54-} +_rocksrel=1 +_package() { + luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr" \ + make --deps-mode=none --no-manifest "rockspecs/${_rockname}-${version}-${_rocksrel}.rockspec" +} + +do_install() { + _package 5.4 + vlicense LICENSE.md +} + +lua51-penlight_package() { + build_style=meta + depends="lua51 lua51-luafilesystem" + pkg_install() { + _package 5.1 + vlicense LICENSE.md + } +} + +lua52-penlight_package() { + build_style=meta + depends="lua52 lua52-luafilesystem" + pkg_install() { + _package 5.2 + vlicense LICENSE.md + } +} + +lua53-penlight_package() { + build_style=meta + depends="lua53 lua53-luafilesystem" + pkg_install() { + _package 5.3 + vlicense LICENSE.md + } +}