`proton-bridge`: Run `go mod tidy` before getting dependencies

This commit is contained in:
Yaksh Bariya 2021-07-05 21:45:16 +05:30
parent e021b590b3
commit b520cf0259
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 9 additions and 6 deletions

View File

@ -6,13 +6,16 @@ TERMUX_PKG_SRCURL=https://github.com/ProtonMail/proton-bridge.git
TERMUX_PKG_GIT_BRANCH=br-$TERMUX_PKG_VERSION
TERMUX_PKG_MAINTAINER="Radomír Polách <rp@t4d.cz>"
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_SRCDIR/go
go mod tidy
termux_go_get -d -v
make build-nogui
}
termux_step_make_install() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
export BUILDDIR=$TERMUX_PREFIX/bin
cd $TERMUX_PKG_SRCDIR
termux_go_get
make build-nogui
install -Dm700 proton-bridge "$TERMUX_PREFIX"/bin/proton-bridge
}