mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-19 16:52:16 +00:00
1a782a45af
This commit has been automatically submitted by Github Actions.
28 lines
837 B
Bash
28 lines
837 B
Bash
TERMUX_PKG_HOMEPAGE=https://maunium.net/go/mautrix-whatsapp/
|
|
TERMUX_PKG_DESCRIPTION="A Matrix-WhatsApp puppeting bridge"
|
|
TERMUX_PKG_LICENSE="AGPL-V3"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.11.2"
|
|
TERMUX_PKG_SRCURL=https://github.com/mautrix/whatsapp/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=7ab54e929501be2af6d6fcea915dd13d1deb29ab581641dd17b718c0c389cb67
|
|
TERMUX_PKG_DEPENDS="libolm"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_golang
|
|
|
|
go mod init || :
|
|
go mod tidy
|
|
}
|
|
|
|
termux_step_make() {
|
|
go build \
|
|
-ldflags "-X main.Tag=$TERMUX_PKG_VERSION -X 'main.BuildTime=$(date -d @"$SOURCE_DATE_EPOCH" '+%b %_d %Y, %H:%M:%S')'" \
|
|
./cmd/mautrix-whatsapp
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin mautrix-whatsapp
|
|
}
|