blob: d57b1c317262b1b64e4f4e121385d97b3af5b118 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}
|