2018-04-07 00:57:29 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://rclone.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="rsync for cloud storage"
|
2018-09-08 02:12:01 +02:00
|
|
|
TERMUX_PKG_VERSION=1.43.1
|
|
|
|
TERMUX_PKG_SHA256=e21161bca6674dd4f4cd2f9ffb63ebfab54dcdb3ddbbbcd5000d4067019fdbaf
|
2018-04-29 16:55:35 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ncw/rclone/releases/download/v${TERMUX_PKG_VERSION}/rclone-v${TERMUX_PKG_VERSION}.tar.gz
|
2018-04-07 00:57:29 +02:00
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
|
|
|
|
termux_setup_golang
|
|
|
|
|
|
|
|
mkdir -p .gopath/src/github.com/ncw
|
|
|
|
ln -sf "$PWD" .gopath/src/github.com/ncw/rclone
|
|
|
|
export GOPATH="$PWD/.gopath"
|
|
|
|
|
|
|
|
go build -v -o rclone
|
|
|
|
|
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/
|
|
|
|
}
|