From 1a2e2971878289e3ab220110f67c02836939ecf0 Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 30 Oct 2022 10:29:49 +0000 Subject: stylua: initial commit, version 0.15.1 --- stylua/.footprint | 3 +++ stylua/.signature | 5 +++++ stylua/Pkgfile | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 stylua/.footprint create mode 100644 stylua/.signature create mode 100644 stylua/Pkgfile (limited to 'stylua') diff --git a/stylua/.footprint b/stylua/.footprint new file mode 100644 index 000000000..0e1c5b149 --- /dev/null +++ b/stylua/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/stylua diff --git a/stylua/.signature b/stylua/.signature new file mode 100644 index 000000000..0c87bc809 --- /dev/null +++ b/stylua/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3/PMkyDepKyofooFU5cEoFI81QPeE1wLIgzI2IO3ttYU0MalJ/XsQoS2mhanENBTm2I6fog6BzwnPKMh20xtgQc= +SHA256 (Pkgfile) = 6798c136f6af5c137c3a2390daa642fa8d893595dfdaac9be7da2dab1835b85a +SHA256 (.footprint) = 206c4ed7edd33daadb8c9716aa98945676fdbc660ad1206599341acdb764564e +SHA256 (StyLua-0.15.1.tar.gz) = 5524e431a1805b7cf43587f16736643c75a00092bf302bb1f9f73e8e5d1c5a41 diff --git a/stylua/Pkgfile b/stylua/Pkgfile new file mode 100644 index 000000000..98e86d21a --- /dev/null +++ b/stylua/Pkgfile @@ -0,0 +1,18 @@ +# Description: Code formatter for Lua +# URL: https://github.com/JohnnyMorganz/StyLua +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: rust + +name=stylua +version=0.15.1 +release=1 +source=(https://github.com/JohnnyMorganz/StyLua/archive/v$version/StyLua-$version.tar.gz) + +build() { + prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache + mkdir "$PKGMK_SOURCE_DIR/rust" || true + export CARGO_HOME="$PKGMK_SOURCE_DIR/rust" + + cargo build --release --manifest-path StyLua-$version/Cargo.toml + install -Dt $PKG/usr/bin StyLua-$version/target/release/$name +} -- cgit v1.2.3