2021-10-08 16:52:48 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/mvdan/fdroidcl
|
|
|
|
TERMUX_PKG_DESCRIPTION="F-Droid client"
|
|
|
|
TERMUX_PKG_LICENSE="BSD"
|
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
|
|
|
TERMUX_PKG_VERSION=0.5.0
|
2021-10-08 16:59:33 +02:00
|
|
|
TERMUX_PKG_REVISION=7
|
2021-10-08 16:52:48 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/mvdan/fdroidcl/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=532a8c4c93216cbf13378ff409c06a08d48e8baee6119a50ed43dc0ce9ec7879
|
|
|
|
TERMUX_PKG_DEPENDS="android-tools"
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
|
|
|
|
mkdir -p "$GOPATH"/src/mvdan.cc
|
|
|
|
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/mvdan.cc/fdroidcl
|
|
|
|
cd "$GOPATH"/src/mvdan.cc/fdroidcl
|
|
|
|
|
|
|
|
go build .
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 "$TERMUX_PKG_BUILDDIR"/src/mvdan.cc/fdroidcl/fdroidcl \
|
|
|
|
"$TERMUX_PREFIX"/bin/fdroidcl
|
|
|
|
}
|