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"
|
2022-04-16 12:48:17 +02:00
|
|
|
TERMUX_PKG_VERSION=2.1.3
|
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-10-30 16:06:41 +02:00
|
|
|
TERMUX_PKG_DEPENDS=libsecret
|
2022-04-16 12:48:17 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
# The go-rfc5322 module cannot currently be compiled for 32-bit OSes:
|
|
|
|
# https://github.com/ProtonMail/proton-bridge/blob/v2.1.1/BUILDS.md#prerequisites
|
2021-01-06 13:46:01 +01:00
|
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
|
2020-10-30 17:18:25 +01:00
|
|
|
|
2021-10-30 16:06:41 +02:00
|
|
|
termux_step_make() {
|
2020-10-30 17:18:25 +01:00
|
|
|
termux_setup_golang
|
2021-07-10 16:00:18 +02:00
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
2021-10-30 16:06:41 +02:00
|
|
|
|
2020-10-30 17:18:25 +01:00
|
|
|
make build-nogui
|
2021-10-30 16:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 $TERMUX_PKG_SRCDIR/proton-bridge \
|
|
|
|
"$TERMUX_PREFIX"/bin/proton-bridge
|
2020-10-30 17:18:25 +01:00
|
|
|
}
|