24 lines
792 B
Bash
24 lines
792 B
Bash
# Template file for 'StyLua'
|
|
pkgname=StyLua
|
|
version=0.14.3
|
|
revision=1
|
|
build_style=cargo
|
|
configure_args="$(vopt_if lua52 '--features lua52') $(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/master/CHANGELOG.md"
|
|
distfiles="https://github.com/JohnnyMorganz/StyLua/archive/v${version}.tar.gz"
|
|
checksum=d56d7f9ca7302047ecb5c92eb60436fcc2ee6dcb8c4b0f21d6d0f2c5461a9769
|
|
|
|
build_options="lua52 luau"
|
|
build_options_default="lua52 luau"
|
|
|
|
desc_option_lua52="Enable support for Lua 5.2 syntax"
|
|
desc_option_luau="Enable support for Luau syntax"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|