mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
introduce github.com/mxcl/swift-sh
This commit is contained in:
parent
adfe3a8e4e
commit
6ed35e1745
1 changed files with 33 additions and 0 deletions
33
projects/github.com/mxcl/swift-sh/package.yml
Normal file
33
projects/github.com/mxcl/swift-sh/package.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
distributable:
|
||||||
|
url: "https://github.com/mxcl/swift-sh/archive/{{version}}.tar.gz"
|
||||||
|
# this obscure option dictates how many components are removed from the
|
||||||
|
# extracted tarball.
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: mxcl/swift-sh # reads github release tags
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- darwin
|
||||||
|
# - linux/x86-64
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
# swift.org: 5
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
# swift.org: 5
|
||||||
|
# apple.com/xcode: >=11
|
||||||
|
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
|
Loading…
Reference in a new issue