mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
1253504148
closes #4220
28 lines
771 B
YAML
28 lines
771 B
YAML
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:
|
|
CGO_ENABLED: 0
|
|
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}}
|
|
- rclone --version | grep {{version}}
|