New package: lua54-luautf8-0.1.5

This commit is contained in:
Luciogi 2024-07-12 18:01:42 +05:00 committed by John Zimmermann
parent f2435bf543
commit 166e79cffb
4 changed files with 58 additions and 0 deletions

1
srcpkgs/lua51-luautf8 Symbolic link
View File

@ -0,0 +1 @@
lua54-luautf8

1
srcpkgs/lua52-luautf8 Symbolic link
View File

@ -0,0 +1 @@
lua54-luautf8

1
srcpkgs/lua53-luautf8 Symbolic link
View File

@ -0,0 +1 @@
lua54-luautf8

View File

@ -0,0 +1,55 @@
# Template file for 'lua54-luautf8'
pkgname=lua54-luautf8
version=0.1.5
revision=1
build_style=meta
hostmakedepends="luarocks-lua54"
depends="lua54"
short_desc="UTF-8 support module for Lua and LuaJIT"
maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
license="MIT"
homepage="https://github.com/starwing/luautf8"
distfiles="https://github.com/starwing/luautf8/archive/refs/tags/${version}.tar.gz"
checksum=f4bddecc87521c53d37c09b9e9edd70a4ab35b0074040f303cbe3a0e088af21c
_lua_versions="lua5.1 lua5.2 lua5.3 lua5.4"
for _lua_version in $_lua_versions; do
hostmakedepends+=" ${_lua_version/./}"
makedepends+=" ${_lua_version/./}-devel"
done
_rockname=${pkgname#lua54-}
_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-luautf8_package() {
depends="lua51"
pkg_install() {
_package 5.3
vlicense LICENSE
}
}
lua52-luautf8_package() {
depends="lua52"
pkg_install() {
_package 5.2
vlicense LICENSE
}
}
lua51-luautf8_package() {
depends="lua51"
pkg_install() {
_package 5.1
vlicense LICENSE
}
}