summaryrefslogtreecommitdiff
path: root/opt/shfmt
diff options
context:
space:
mode:
Diffstat (limited to 'opt/shfmt')
-rw-r--r--opt/shfmt/.footprint3
-rw-r--r--opt/shfmt/.signature6
-rw-r--r--opt/shfmt/MAKEPKG28
3 files changed, 37 insertions, 0 deletions
diff --git a/opt/shfmt/.footprint b/opt/shfmt/.footprint
new file mode 100644
index 0000000..15cf5b3
--- /dev/null
+++ b/opt/shfmt/.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/shfmt
diff --git a/opt/shfmt/.signature b/opt/shfmt/.signature
new file mode 100644
index 0000000..ac3d570
--- /dev/null
+++ b/opt/shfmt/.signature
@@ -0,0 +1,6 @@
+RWTZ9IduCSQ/mISOkt0thjSvE7tetf+yN/q2gLq+gQXCRLjEBDKBFxzWw8LJwJvbwrHq5yaakCe4KpO0nCfJm69d2nt3B29xggA=
+
+SHA256 (MAKEPKG) = 5eed0eb6dedad600c827a235a5fd9ed3ce18cd65558cd1a42fa0ebbbc786c167
+SHA256 (.footprint) = e76b7841309fdb6e5426809ab65c17f8b3f56ace07ad3811e7110236b2a2043c
+SHA256 (shfmt-3.14.1.tar.gz) = ec4bdb88ab6c95686be3a4eeb4ad77d2b49d33d2ed7b0a65035cd52d2d87c443
+SHA256 (shfmt#3.14.1-1.pkg.tar.gz) = 2b5291e7ca425a2888ab8d0175474b2cf8a146c9f8eaaa6b05058fb274a770c2
diff --git a/opt/shfmt/MAKEPKG b/opt/shfmt/MAKEPKG
new file mode 100644
index 0000000..d57b1c3
--- /dev/null
+++ b/opt/shfmt/MAKEPKG
@@ -0,0 +1,28 @@
+#!/bin/mkpkg
+# description: A shell formatter (sh/bash/mksh)
+# url: https://github.com/mvdan/sh
+
+name=shfmt
+version=3.14.1
+release=1
+makedeps=(go)
+source=(https://github.com/mvdan/sh/archive/refs/tags/v${version}.tar.gz)
+renames=(${name}-${version}.tar.gz)
+sha256sums=(
+ "ec4bdb88ab6c95686be3a4eeb4ad77d2b49d33d2ed7b0a65035cd52d2d87c443"
+)
+
+build() {
+ cd sh-${version}
+
+ export GOFLAGS="-trimpath -mod=readonly -ldflags=-s -ldflags=-w"
+ export CGO_ENABLED=0 # static binary, no libc dependency
+
+ cd cmd/shfmt
+ go build -o $PKG/usr/bin/shfmt .
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}