From 63f1ea9003325f22717fec0b03fd019e70189a37 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..02349ef6e763 --- /dev/null +++ b/srcpkgs/StyLua/template @@ -0,0 +1,30 @@ +# Template file for 'StyLua' +pkgname=StyLua +version=0.10.1 +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=03999c22779f4dcf68fdf92d143a95afccd6c6554da27af308fd826179db80f9 + +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 +}