2023-07-18 23:03:40 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/rclone/rclone/archive/v1.63.0.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: rclone/rclone
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: '*'
|
|
|
|
darwin:
|
|
|
|
curl.se: '*'
|
|
|
|
gnu.org/patch: '*'
|
|
|
|
script:
|
|
|
|
- run: curl -L https://github.com/rclone/rclone/commit/c5a6821a8f09b1ac88e246a775d99271fa12cecd.patch?full_index=1 | patch -p1
|
|
|
|
if: darwin
|
|
|
|
- go build $ARGS -ldflags='-s -w -X github.com/rclone/rclone/fs.Version=v{{version}}'
|
|
|
|
env:
|
2023-11-27 18:10:33 +03:00
|
|
|
CGO_ENABLED: 0
|
2023-07-18 23:03:40 +03:00
|
|
|
ARGS:
|
|
|
|
- -trimpath
|
|
|
|
- -o={{prefix}}/bin/rclone
|
|
|
|
provides:
|
|
|
|
- bin/rclone
|
|
|
|
test:
|
|
|
|
script:
|
|
|
|
- echo "My version - {{version}}" > test.txt
|
|
|
|
- rclone copy test.txt dist
|
|
|
|
- cat dist/test.txt | grep {{version}}
|
2023-11-27 18:10:33 +03:00
|
|
|
- rclone --version | grep {{version}}
|