pantry/projects/github.com/nicklockwood/SwiftFormat/package.yml
David Roman d851fed0fa
+swiftformat (#2375)
* wip

* linux too maybe?

* nope no linux
2023-07-06 13:40:11 -04:00

25 lines
540 B
YAML

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:
dependencies:
tea.xyz/gx/cc: c99
# swift.org: 5
# apple.com/xcode: >=13.3
script: |
swift build --configuration release
mkdir -p {{prefix}}/bin
mv $(swift build --configuration release --show-bin-path)/swiftformat {{prefix}}/bin
test:
swiftformat --version | grep {{version}}