0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-31 21:22:27 +00:00
Termux Github Actions f6987b3316 bump(main/gopass): 1.15.15
This commit has been automatically submitted by Github Actions.
2024-11-24 18:16:54 +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.15"
TERMUX_PKG_SRCURL=https://github.com/gopasspw/gopass/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=00ad6a32f89fe64760b70b9424af19b88d671673a66424d59d80cfa97deb75d3
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"
}