void-packages/srcpkgs/lua54-cliargs/template
2025-01-02 01:58:36 +01:00

49 lines
1.1 KiB
Bash

# 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
}
}