summaryrefslogtreecommitdiff
path: root/stylua
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2022-10-30 10:29:49 +0000
committerTim Biermann <tbier@posteo.de>2022-10-30 10:29:49 +0000
commit1a2e2971878289e3ab220110f67c02836939ecf0 (patch)
treeab3b6a1dad77f82370f94289bcc993c1de7bfc31 /stylua
parentae10c4fc2fbb43af944b4ddc76ade5a0d2827bd5 (diff)
downloadcontrib-1a2e2971878289e3ab220110f67c02836939ecf0.tar.gz
contrib-1a2e2971878289e3ab220110f67c02836939ecf0.tar.xz
stylua: initial commit, version 0.15.1
Diffstat (limited to 'stylua')
-rw-r--r--stylua/.footprint3
-rw-r--r--stylua/.signature5
-rw-r--r--stylua/Pkgfile18
3 files changed, 26 insertions, 0 deletions
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
+}

Generated by cgit