diff --git a/srcpkgs/lua51-cldr b/srcpkgs/lua51-cldr new file mode 120000 index 00000000000..fe359b22385 --- /dev/null +++ b/srcpkgs/lua51-cldr @@ -0,0 +1 @@ +lua54-cldr \ No newline at end of file diff --git a/srcpkgs/lua52-cldr b/srcpkgs/lua52-cldr new file mode 120000 index 00000000000..fe359b22385 --- /dev/null +++ b/srcpkgs/lua52-cldr @@ -0,0 +1 @@ +lua54-cldr \ No newline at end of file diff --git a/srcpkgs/lua53-cldr b/srcpkgs/lua53-cldr new file mode 120000 index 00000000000..fe359b22385 --- /dev/null +++ b/srcpkgs/lua53-cldr @@ -0,0 +1 @@ +lua54-cldr \ No newline at end of file diff --git a/srcpkgs/lua54-cldr/template b/srcpkgs/lua54-cldr/template new file mode 100644 index 00000000000..13a98bd47f6 --- /dev/null +++ b/srcpkgs/lua54-cldr/template @@ -0,0 +1,49 @@ +# Template file for 'lua54-cldr' +pkgname=lua54-cldr +version=0.3.0 +revision=1 +hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54" +depends="lua54-penlight" +short_desc="Lua interface to Unicode CLDR data" +maintainer="Luciogi " +license="MIT" +homepage="https://github.com/alerque/cldr-lua" +distfiles="https://github.com/alerque/cldr-lua/archive/refs/tags/v${version}.tar.gz" +checksum=bf38132c274a35b500787668fd561302374c6687333ff8be0c6751ad35151399 + +_rockname=${pkgname#lua54-} +_rocksrel=0 +_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 +} + +lua53-cldr_package() { + build_style=meta + depends="lua53 lua53-penlight" + pkg_install() { + _package 5.3 + } +} + +lua52-cldr_package() { + build_style=meta + depends="lua52 lua52-penlight" + pkg_install() { + _package 5.2 + } +} + +lua51-cldr_package() { + build_style=meta + depends="lua51 lua51-penlight" + pkg_install() { + _package 5.1 + } +}