mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
5aab62f2fc
closes #4781
28 lines
754 B
YAML
28 lines
754 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:
|
|
# swift.org: 5
|
|
# apple.com/xcode: >=13.3
|
|
script:
|
|
# swift freaks all the way out if there's UTF-8 in the `TMPDIR`
|
|
# swift build --configuration=release
|
|
# TSCUtility/Triple.swift:215: Fatal error: Failed to parse target info (malformed).
|
|
- export TMPDIR=$(mktemp -d)
|
|
|
|
- swift build --configuration release
|
|
- mkdir -p {{prefix}}/bin
|
|
- mv $(swift build --configuration release --show-bin-path)/swiftformat {{prefix}}/bin
|
|
|
|
test: swiftformat --version | grep {{version}}
|