void-packages/srcpkgs/lua-stdlib-normalize/template
2020-04-20 16:03:28 +02:00

48 lines
1.1 KiB
Bash

# Template file for 'lua-stdlib-normalize'
pkgname=lua-stdlib-normalize
version=2.0.3
revision=1
archs=noarch
wrksrc=normalize-${version}
depends="lua lua-stdlib-debug"
short_desc="Collection of normalized Lua functions (Lua 5.3)"
maintainer="Daniel Santana <daniel@santana.tech>"
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; 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="${short_desc/5.3/5.1}"
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="${short_desc/5.3/5.2}"
pkg_install() {
vmove usr/share/lua/5.2
vdoc NEWS.md
vdoc README.md
vdoc AUTHORS.md
vlicense LICENSE.md
}
}