termux-packages/packages/rclone/build.sh
Termux Github Actions 55bcf3dbed rclone: update to 1.54.0
This commit has been automatically submitted by Github Actions.
2021-02-02 18:38:01 +00:00

27 lines
811 B
Bash

TERMUX_PKG_HOMEPAGE=https://rclone.org/
TERMUX_PKG_DESCRIPTION="rsync for cloud storage"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.54.0
TERMUX_PKG_SRCURL=https://github.com/rclone/rclone/releases/download/v${TERMUX_PKG_VERSION}/rclone-v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=95f952dc059b842bd40338458b77657f7b5a1680c4ca837a3adcf83b63c8fda1
termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR
termux_setup_golang
mkdir -p .gopath/src/github.com/rclone
ln -sf "$PWD" .gopath/src/github.com/rclone/rclone
export GOPATH="$PWD/.gopath"
go build -v -o rclone
# XXX: Fix read-only files which prevents removal of src dir.
chmod u+w -R .
cp rclone $TERMUX_PREFIX/bin/rclone
mkdir -p $TERMUX_PREFIX/share/man/man1/
cp rclone.1 $TERMUX_PREFIX/share/man/man1/
}