2023-07-06 20:40:11 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/nicklockwood/SwiftFormat/archive/refs/tags/{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: nicklockwood/SwiftFormat
|
|
|
|
|
|
|
|
platforms:
|
|
|
|
- darwin
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/swiftformat
|
|
|
|
|
|
|
|
build:
|
2023-10-02 03:41:57 +03:00
|
|
|
# dependencies:
|
|
|
|
# swift.org: 5
|
|
|
|
# apple.com/xcode: >=13.3
|
2023-07-06 20:40:11 +03:00
|
|
|
script: |
|
|
|
|
swift build --configuration release
|
|
|
|
mkdir -p {{prefix}}/bin
|
|
|
|
mv $(swift build --configuration release --show-bin-path)/swiftformat {{prefix}}/bin
|
|
|
|
|
2023-10-02 03:41:57 +03:00
|
|
|
test: swiftformat --version | grep {{version}}
|