52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# Template file for 'lua54-luaepnf'
|
|
pkgname=lua54-luaepnf
|
|
version=0.3
|
|
revision=1
|
|
hostmakedepends="lua51 lua52 lua53 lua54 luarocks-lua54"
|
|
depends="lua54 lua54-lpeg"
|
|
short_desc="Extended PEG Notation Format (easy grammars for LPeg)"
|
|
maintainer="Luciogi <githubvoidlinux.supremacy429@passinbox.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/siffiejoe/lua-luaepnf"
|
|
distfiles="https://github.com/siffiejoe/lua-luaepnf/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=57c0ad1917e45c5677bfed0f6122da2baff98117aba05a5e987a0238600f85f9
|
|
|
|
_rockname=${pkgname#lua54-}
|
|
_rocksrel=scm-0
|
|
_package() {
|
|
luarocks --lua-version="$1" --tree="${PKGDESTDIR}/usr/" \
|
|
make --deps-mode=none --no-manifest "${_rockname}-${_rocksrel}.rockspec"
|
|
}
|
|
|
|
do_install() {
|
|
_package 5.4
|
|
sed -n '14,38p' README.md > LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
lua53-luaepnf_package() {
|
|
build_style=meta
|
|
depends="lua53 lua53-lpeg"
|
|
pkg_install() {
|
|
_package 5.3
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
|
|
lua52-luaepnf_package() {
|
|
build_style=meta
|
|
depends="lua52 lua52-lpeg"
|
|
pkg_install() {
|
|
_package 5.2
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
|
|
lua51-luaepnf_package() {
|
|
build_style=meta
|
|
depends="lua51 lua51-lpeg"
|
|
pkg_install() {
|
|
_package 5.1
|
|
vlicense LICENSE
|
|
}
|
|
}
|