From b7d1fe080f313b03b6d57584803fb285301ef85b Mon Sep 17 00:00:00 2001 From: Omar Zeghouani Date: Tue, 10 Aug 2021 22:06:30 +0100 Subject: [PATCH] New package: StyLua-0.10.1 --- srcpkgs/StyLua/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/StyLua/template diff --git a/srcpkgs/StyLua/template b/srcpkgs/StyLua/template new file mode 100644 index 000000000000..1ac39a96fe88 --- /dev/null +++ b/srcpkgs/StyLua/template @@ -0,0 +1,30 @@ +# Template file for 'StyLua' +pkgname=StyLua +version=0.11.0 +revision=1 +build_style=cargo +short_desc="Opinionated Lua code formatter" +maintainer="Omar Zeghouani " +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=39f0bad4cc175202eae2551e4ddaf3dd6a229943e8da3e462d4fa15a024fd0fa + +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" + +_features="$(vopt_if lua52 'lua52,')" +_features+="$(vopt_if luau 'luau')" + +if [ "$_features" ]; then + echo $_features + configure_args="--features $_features" +fi + +post_install() { + vlicense LICENSE.md +}