27 lines
995 B
Bash
27 lines
995 B
Bash
# Template file for 'StyLua'
|
|
pkgname=StyLua
|
|
version=0.15.2
|
|
revision=1
|
|
build_style=cargo
|
|
configure_args="$(vopt_if lua52 '--features lua52') $(vopt_if lua53 '--features lua53')
|
|
$(vopt_if lua54 '--features lua54') $(vopt_if luau '--features luau')"
|
|
short_desc="Opinionated Lua code formatter"
|
|
maintainer="Omar Zeghouani <omarzeghouanii@gmail.com>"
|
|
license="MPL-2.0"
|
|
homepage="https://github.com/JohnnyMorganz/StyLua"
|
|
changelog="https://raw.githubusercontent.com/JohnnyMorganz/StyLua/main/CHANGELOG.md"
|
|
distfiles="https://github.com/JohnnyMorganz/StyLua/archive/v${version}.tar.gz"
|
|
checksum=9a0ce0131f0fa38652f03281c54de0c6e3251e06897a53d719e78449d66e270b
|
|
|
|
build_options="lua52 lua53 lua54 luau"
|
|
build_options_default="lua52 lua53 lua54 luau"
|
|
|
|
desc_option_lua52="Enable support for Lua 5.2 syntax"
|
|
desc_option_lua53="Enable support for Lua 5.3 syntax"
|
|
desc_option_lua54="Enable support for Lua 5.4 syntax"
|
|
desc_option_luau="Enable support for Luau syntax"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|