New package: lua54-loadkit-1.1.0

This commit is contained in:
Luciogi 2024-07-12 18:02:05 +05:00 committed by John Zimmermann
parent 6961262238
commit e578c0fd8f
4 changed files with 61 additions and 0 deletions

1
srcpkgs/lua51-loadkit Symbolic link
View File

@ -0,0 +1 @@
lua54-loadkit

1
srcpkgs/lua52-loadkit Symbolic link
View File

@ -0,0 +1 @@
lua54-loadkit

1
srcpkgs/lua53-loadkit Symbolic link
View File

@ -0,0 +1 @@
lua54-loadkit

View File

@ -0,0 +1,58 @@
# Template file for 'lua54-loadkit'
pkgname=lua54-loadkit
version=1.1.0
revision=1
_rockname=${pkgname#lua54-}
_rocksrel=1
hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
depends="lua54"
short_desc="Allows you to load arbitrary files within the Lua package path"
maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
license="MIT"
homepage="https://github.com/leafo/loadkit"
_rockspec=$_rockname-${version}-$_rocksrel.rockspec
distfiles="https://github.com/leafo/loadkit/archive/refs/tags/v${version}.tar.gz
https://github.com/leafo/loadkit/releases/download/v${version}/$_rockspec
https://raw.githubusercontent.com/leafo/loadkit/95b13a36442f59b41ab52df96d52233c4a725dfd/LICENSE"
checksum="39742dd5db94f13886810cf69fc9b3db89bba3180c060384136115c9da431196
5404ec4cad62351e35c196ee87810ab3977405b7d94fe9a8dc5f64906007dd21
33a8a65f4659341c09148adffc2657aa9901e2c0d14cba6e63abaaaf124e76d1"
skip_extraction="$_rockspec LICENSE"
post_extract() {
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/{$_rockspec,LICENSE} ${XBPS_BUILDIR}/${wrksrc}/
}
_package() {
luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
make --deps-mode=none --no-manifest "$_rockspec"
}
do_install() {
_package 5.4
vlicense LICENSE
}
lua53-loadkit_package() {
build_style=meta
depends="lua53"
pkg_install() {
_package 5.3
}
}
lua52-loadkit_package() {
build_style=meta
depends="lua52"
pkg_install() {
_package 5.2
}
}
lua51-loadkit_package() {
build_style=meta
depends="lua51"
pkg_install() {
_package 5.1
}
}