mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
2bf72092d9
This commit has been automatically submitted by Github Actions.
30 lines
1014 B
Bash
30 lines
1014 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/getsops/sops
|
|
TERMUX_PKG_DESCRIPTION="Simple and flexible tool for managing secrets"
|
|
TERMUX_PKG_LICENSE="MPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.9.2"
|
|
TERMUX_PKG_SRCURL=https://github.com/getsops/sops/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=8d4cbb30afacc88b5b55d1f7c9b22c82e2dde68905dc8e797a52aafe2c96f466
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_TAG_TYPE="latest-release-tag"
|
|
|
|
termux_step_make_install() {
|
|
termux_setup_golang
|
|
|
|
export GOPATH="${TERMUX_PKG_BUILDDIR}"
|
|
mkdir -p "${GOPATH}/src/github.com/getsops"
|
|
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/getsops/sops"
|
|
cd "${GOPATH}/src/github.com/getsops/sops" || return 9
|
|
go get -d -v
|
|
|
|
local d
|
|
for d in ${GOPATH}/pkg/mod/github.com/hashicorp/go-sockaddr*; do
|
|
chmod +w -R "${d}"
|
|
patch --silent -p1 -d "${d}" < "$TERMUX_PKG_BUILDER_DIR/go-sockaddr.diff" || :
|
|
done
|
|
|
|
make install
|
|
|
|
install -Dm700 "${GOPATH}/bin/"*/sops "${TERMUX_PREFIX}/bin/sops"
|
|
}
|