0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-07-02 22:07:36 +00:00
Files
termux-packages/packages/gopass/build.sh
Termux Github Actions e200db7e63 bump(main/gopass): 1.15.16
This commit has been automatically submitted by Github Actions.
2025-04-22 00:15:49 +00:00

42 lines
1.8 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/gopasspw/gopass
TERMUX_PKG_DESCRIPTION="The slightly more awesome standard unix password manager for teams"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000"
TERMUX_PKG_VERSION="1.15.16"
TERMUX_PKG_SRCURL=https://github.com/gopasspw/gopass/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=2e387cbfad535665c28ceafe7084f5b8a020845bb56a2e2e01140b16eef0f21a
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="git, gnupg"
TERMUX_PKG_SUGGESTS="termux-api, openssh"
termux_step_make() {
termux_setup_golang
# The commit introducing this is 2 years old, no idea why its only causing build failures now
# https://github.com/gopasspw/gopass/commit/ffaa9e372999a4c5db82f0a281fc67758d107ac0
# needed as of 1.15.13 for all architectures except AArch64
sed -i 's|CGO_ENABLED=0|CGO_ENABLED=1|g' "$TERMUX_PKG_SRCDIR/Makefile"
export GOPATH=$TERMUX_PKG_BUILDDIR
mkdir -p ./src
mkdir -p ./src/github.com/gopasspw
ln -sf "$TERMUX_PKG_SRCDIR" ./src/github.com/gopasspw/gopass
rm -f ./src/github.com/gopasspw/gopass/gopass
make -C ./src/github.com/gopasspw/gopass build CLIPHELPERS="-X github.com/gopasspw/gopass/pkg/clipboard.Helpers=termux-api'"
install -Dm700 \
./src/github.com/gopasspw/gopass/gopass \
"$TERMUX_PREFIX"/bin/gopass
}
termux_step_post_make_install() {
cd "$TERMUX_PKG_SRCDIR"
install -Dm600 gopass.1 -t "$TERMUX_PREFIX/share/man/man1"
install -Dm600 bash.completion "$TERMUX_PREFIX/share/bash-completion/completions/gopass"
install -Dm600 zsh.completion "$TERMUX_PREFIX/share/zsh/site-functions/_gopass"
install -Dm600 fish.completion "$TERMUX_PREFIX/share/fish/vendor_completions.d/gopass.fish"
install -Dm600 {README,CHANGELOG,ARCHITECTURE}.md -t "$TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME"
cd ./docs
rm -f logo*.*
cp --parents -r * -t "$TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME"
}