2018-04-07 00:57:29 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://rclone.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="rsync for cloud storage"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-10-01 20:22:40 +02:00
|
|
|
TERMUX_PKG_VERSION=1.56.2
|
2019-08-29 14:43:51 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/rclone/rclone/releases/download/v${TERMUX_PKG_VERSION}/rclone-v${TERMUX_PKG_VERSION}.tar.gz
|
2021-10-01 20:22:40 +02:00
|
|
|
TERMUX_PKG_SHA256=a8813d25c4640e52495fee83e525e76283c63f01d1cce8fbb58d8486b0c20c8a
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2018-04-07 00:57:29 +02:00
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
|
|
|
|
termux_setup_golang
|
|
|
|
|
2019-08-29 14:43:51 +02:00
|
|
|
mkdir -p .gopath/src/github.com/rclone
|
|
|
|
ln -sf "$PWD" .gopath/src/github.com/rclone/rclone
|
2018-04-07 00:57:29 +02:00
|
|
|
export GOPATH="$PWD/.gopath"
|
|
|
|
|
2021-04-26 10:29:29 +02:00
|
|
|
go build -v -ldflags "-X github.com/rclone/rclone/fs.Version=${TERMUX_PKG_VERSION}-termux" -tags noselfupdate -o rclone
|
2018-04-07 00:57:29 +02:00
|
|
|
|
2018-09-03 23:23:22 +02:00
|
|
|
# XXX: Fix read-only files which prevents removal of src dir.
|
|
|
|
chmod u+w -R .
|
|
|
|
|
2018-04-07 00:57:29 +02:00
|
|
|
cp rclone $TERMUX_PREFIX/bin/rclone
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/man/man1/
|
|
|
|
cp rclone.1 $TERMUX_PREFIX/share/man/man1/
|
|
|
|
}
|