void-packages/srcpkgs/StyLua/template

24 lines
792 B
Bash
Raw Normal View History

2021-08-10 21:06:30 +00:00
# Template file for 'StyLua'
pkgname=StyLua
2022-01-31 00:25:59 +00:00
version=0.12.1
2021-08-10 21:06:30 +00:00
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"
2022-01-31 00:25:59 +00:00
checksum=f9f57d52a5665c4c878556e14b8533da053d64a55575fbc92e4445c5a064bd4f
2021-08-10 21:06:30 +00:00
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
}