rclone: Cache Golang dependencies

This commit is contained in:
Yaksh Bariya 2021-07-09 22:13:49 +05:30
parent 7b012db72f
commit 9928c68037
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -16,6 +16,7 @@ termux_step_make_install() {
ln -sf "$PWD" .gopath/src/github.com/rclone/rclone
export GOPATH="$PWD/.gopath"
termux_go_get
go build -v -ldflags "-X github.com/rclone/rclone/fs.Version=${TERMUX_PKG_VERSION}-termux" -tags noselfupdate -o rclone
# XXX: Fix read-only files which prevents removal of src dir.