2020-10-30 17:18:25 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/ProtonMail/proton-bridge
|
|
|
|
TERMUX_PKG_DESCRIPTION="ProtonMail Bridge application"
|
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2021-02-07 21:21:52 +01:00
|
|
|
TERMUX_PKG_VERSION=1.5.7
|
2020-10-30 17:18:25 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ProtonMail/proton-bridge.git
|
2021-01-06 02:08:17 +01:00
|
|
|
TERMUX_PKG_GIT_BRANCH=br-$TERMUX_PKG_VERSION
|
2020-10-30 17:18:25 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="Radomír Polách <rp@t4d.cz>"
|
2021-01-06 13:46:01 +01:00
|
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
|
2021-07-05 18:15:16 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2020-10-30 17:18:25 +01:00
|
|
|
|
2021-07-05 18:15:16 +02:00
|
|
|
termux_step_make() {
|
2020-10-30 17:18:25 +01:00
|
|
|
termux_setup_golang
|
2021-07-05 18:15:16 +02:00
|
|
|
export GOPATH=$TERMUX_PKG_SRCDIR/go
|
|
|
|
go mod tidy
|
2021-07-05 18:45:27 +02:00
|
|
|
# TODO: Cache go dependencies `termux_go_deps` after new release of proton-bridge
|
2020-10-30 17:18:25 +01:00
|
|
|
make build-nogui
|
2021-07-05 18:15:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2021-01-06 13:46:01 +01:00
|
|
|
install -Dm700 proton-bridge "$TERMUX_PREFIX"/bin/proton-bridge
|
2020-10-30 17:18:25 +01:00
|
|
|
}
|