termux-packages/packages/sops/build.sh
Aditya Alok c5d3c5e4d6
feat(sops): enable auto-update, upgrade to 3.7.2
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-16 20:02:33 +05:30

22 lines
777 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/mozilla/sops
TERMUX_PKG_DESCRIPTION="Simple and flexible tool for managing secrets"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="Philipp Schmitt @pschmitt"
TERMUX_PKG_VERSION=3.7.2
TERMUX_PKG_SRCURL="https://github.com/mozilla/sops/archive/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=905d0d85e6f3a36eb0586bae5c1bf501445841303e597136f69a33040f5123b2
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make_install() {
termux_setup_golang
export GOPATH="${TERMUX_PKG_BUILDDIR}"
mkdir -p "${GOPATH}/src/go.mozilla.org"
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/go.mozilla.org/sops"
cd "${GOPATH}/src/go.mozilla.org/sops" || return 9
go get -d -v
make install
install -Dm700 "${GOPATH}/bin/"*/sops "${TERMUX_PREFIX}/bin/sops"
}