void-packages/srcpkgs/lua54-stdlib-normalize/template

66 lines
1.5 KiB
Bash

# Template file for 'lua54-stdlib-normalize'
pkgname=lua54-stdlib-normalize
version=2.0.3
revision=4
depends="lua54 lua54-stdlib-debug"
_desc="Collection of normalized Lua functions"
short_desc="${_desc} (5.4.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://lua-stdlib.github.io/normalize/"
distfiles="https://github.com/lua-stdlib/normalize/archive/v${version}.tar.gz"
checksum=2038c38da542cf274b0b7512928e5b649c90a34f36c8919fbbbc2524b4ef716d
do_install() {
for _lua_version in 5.1 5.2 5.3 5.4; do
vmkdir usr/share/lua/$_lua_version/
vcopy lib/std usr/share/lua/$_lua_version/
done
vdoc NEWS.md
vdoc README.md
vdoc AUTHORS.md
vlicense LICENSE.md
}
lua51-stdlib-normalize_package() {
depends="lua51 lua51-stdlib-debug"
short_desc="${_desc} (5.1.x)"
pkg_install() {
vmove usr/share/lua/5.1
vdoc NEWS.md
vdoc README.md
vdoc AUTHORS.md
vlicense LICENSE.md
}
}
lua52-stdlib-normalize_package() {
depends="lua52 lua52-stdlib-debug"
short_desc="${_desc} (5.2.x)"
pkg_install() {
vmove usr/share/lua/5.2
vdoc NEWS.md
vdoc README.md
vdoc AUTHORS.md
vlicense LICENSE.md
}
}
lua53-stdlib-normalize_package() {
depends="lua53 lua53-stdlib-debug"
short_desc="${_desc} (5.3.x)"
pkg_install() {
vmove usr/share/lua/5.3
vdoc NEWS.md
vdoc README.md
vdoc AUTHORS.md
vlicense LICENSE.md
}
}
lua-stdlib-normalize_package() {
depends="lua53-stdlib-normalize>=${version}_${revision}"
short_desc="${_desc} (5.3.x) (transitional dummy package)"
build_style=meta
}