0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 13:03:31 +00:00
Termux Github Actions fe5b25548f bump(main/shfmt): 3.10.0
This commit has been automatically submitted by Github Actions.
2024-10-21 00:32:02 +00:00

24 lines
737 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/mvdan/sh
TERMUX_PKG_DESCRIPTION="A shell parser and formatter"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="3.10.0"
TERMUX_PKG_SRCURL=https://github.com/mvdan/sh/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=4cad722b7a569a05c86ec489b1d5980843ae60ca8db15aa71174c7810378a8ec
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make_install() {
cd "$TERMUX_PKG_SRCDIR"
termux_setup_golang
export GOPATH="$TERMUX_PKG_BUILDDIR"
mkdir -p "$GOPATH/src/github.com/mvdan"
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH/src/github.com/mvdan/sh"
go build -modcacherw \
-ldflags "-X main.version=$TERMUX_PKG_VERSION" \
-o "$TERMUX_PREFIX/bin/shfmt" \
./cmd/shfmt
}