New package: lua54-cliargs-3.0.2

This commit is contained in:
Luciogi 2024-07-12 18:01:09 +05:00 committed by John Zimmermann
parent 4d2ed88413
commit 76ba936cc9
4 changed files with 52 additions and 0 deletions

1
srcpkgs/lua51-cliargs Symbolic link
View File

@ -0,0 +1 @@
lua54-cliargs

1
srcpkgs/lua52-cliargs Symbolic link
View File

@ -0,0 +1 @@
lua54-cliargs

1
srcpkgs/lua53-cliargs Symbolic link
View File

@ -0,0 +1 @@
lua54-cliargs

View File

@ -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 <githubvoidlinux.supremacy429@passinbox.com>"
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
}
}