From 76ba936cc9951f28746358eee8ef6af60ef8cb05 Mon Sep 17 00:00:00 2001 From: Luciogi Date: Fri, 12 Jul 2024 18:01:09 +0500 Subject: [PATCH] New package: lua54-cliargs-3.0.2 --- srcpkgs/lua51-cliargs | 1 + srcpkgs/lua52-cliargs | 1 + srcpkgs/lua53-cliargs | 1 + srcpkgs/lua54-cliargs/template | 49 ++++++++++++++++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 120000 srcpkgs/lua51-cliargs create mode 120000 srcpkgs/lua52-cliargs create mode 120000 srcpkgs/lua53-cliargs create mode 100644 srcpkgs/lua54-cliargs/template diff --git a/srcpkgs/lua51-cliargs b/srcpkgs/lua51-cliargs new file mode 120000 index 00000000000..2f82d49db94 --- /dev/null +++ b/srcpkgs/lua51-cliargs @@ -0,0 +1 @@ +lua54-cliargs \ No newline at end of file diff --git a/srcpkgs/lua52-cliargs b/srcpkgs/lua52-cliargs new file mode 120000 index 00000000000..2f82d49db94 --- /dev/null +++ b/srcpkgs/lua52-cliargs @@ -0,0 +1 @@ +lua54-cliargs \ No newline at end of file diff --git a/srcpkgs/lua53-cliargs b/srcpkgs/lua53-cliargs new file mode 120000 index 00000000000..2f82d49db94 --- /dev/null +++ b/srcpkgs/lua53-cliargs @@ -0,0 +1 @@ +lua54-cliargs \ No newline at end of file diff --git a/srcpkgs/lua54-cliargs/template b/srcpkgs/lua54-cliargs/template new file mode 100644 index 00000000000..d5c193d8dd5 --- /dev/null +++ b/srcpkgs/lua54-cliargs/template @@ -0,0 +1,49 @@ +# Template file for 'lua54-cliargs' +pkgname=lua54-cliargs +version=3.0.2 +revision=1 +build_style=meta +hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54" +depends="lua54" +short_desc="Command-line argument parser for Lua" +maintainer="Luciogi " +license="MIT" +homepage="https://github.com/lunarmodules/lua_cliargs" +distfiles="https://github.com/lunarmodules/lua_cliargs/archive/refs/tags/v${version}.tar.gz" +checksum=a7a57ab9c73f6c44040a78305b6dc7780ca1565cc4c9057d74a6608cb0443af4 + +_rockname=lua_cliargs +_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 +} + +lua53-cliargs_package() { + depends="lua53" + pkg_install() { + _package 5.3 + vlicense LICENSE + } +} + +lua52-cliargs_package() { + depends="lua52" + pkg_install() { + _package 5.2 + vlicense LICENSE + } +} + +lua51-cliargs_package() { + depends="lua51" + pkg_install() { + _package 5.1 + vlicense LICENSE + } +}