2023-08-23 13:49:33 +03:00
|
|
|
distributable:
|
2023-10-02 03:41:57 +03:00
|
|
|
url: 'https://github.com/mxcl/swift-sh/archive/{{version}}.tar.gz'
|
2023-08-23 13:49:33 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-10-02 03:41:57 +03:00
|
|
|
github: mxcl/swift-sh
|
2023-08-23 13:49:33 +03:00
|
|
|
|
|
|
|
platforms:
|
|
|
|
- darwin
|
|
|
|
|
2023-10-02 03:41:57 +03:00
|
|
|
# dependencies:
|
|
|
|
# swift.org: 5
|
2023-08-23 13:49:33 +03:00
|
|
|
|
|
|
|
build:
|
2023-10-02 03:41:57 +03:00
|
|
|
# dependencies:
|
|
|
|
# swift.org: 5
|
|
|
|
# apple.com/xcode: >=11
|
2023-08-23 13:49:33 +03:00
|
|
|
script:
|
|
|
|
- swift build --disable-sandbox -c release
|
|
|
|
- mkdir -p {{prefix}}/bin
|
|
|
|
- mv $(swift build --configuration release --show-bin-path)/swift-sh {{prefix}}/bin
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/swift-sh
|
|
|
|
|
|
|
|
test:
|
|
|
|
- echo "#!/usr/bin/env swift sh" > test.swift
|
|
|
|
- swift-sh eject test.swift
|
|
|
|
- test -e Test/Package.swift
|