@@ -1,12 +1,15 @@
11{
22 "id": "org.freedesktop.Sdk.Extension.swift",
3− "branch": "1.6",
3+ "branch": "20.08",
44 "runtime": "org.freedesktop.Sdk",
55 "sdk": "org.freedesktop.Sdk",
6− "runtime-version": "1.6",
6+ "runtime-version": "20.08",
77 "build-extension": true,
88 "separate-locales": false,
99 "appstream-compose": false,
10+ "build-options": {
11+ "prepend-path": "/usr/lib/sdk/swift"
12+ },
1013 "modules": [
1114 {
1215 "name": "libbsd",
@@ -37,66 +40,69 @@
3740 "sources": [
3841 {
3942 "type": "archive",
40− "url": "https://github.com/apple/swift/archive/swift-4.0-RELEASE.tar.gz",
41− "sha256": "9ebd6b634baf82e69ac9f6fae5c9c979db7c7e4bc9db149b30b575e57da99b94",
43+ "url": "https://github.com/apple/swift/archive/refs/tags/swift-5.4-RELEASE.tar.gz",
44+ "sha256": "421dafdb0dd4c55cdfed4d8736e965b42a0d97f690bb13528947f9cc3f7ddca9",
4245 "dest": "swift"
4346 },
4447 {
4548 "type": "archive",
46− "url": "https://github.com/apple/swift-llvm/archive/swift-4.0-RELEASE.tar.gz",
47− "sha256": "6c30d7f3190b9f76fd646f2c03a093cf768c1aa7e10898ee8281bfe88ba0feeb",
48− "dest": "llvm"
49+ "url": "https://github.com/apple/llvm-project/archive/refs/tags/swift-5.4-DEVELOPMENT-SNAPSHOT-2021-04-23-a.tar.gz",
50+ "sha256": "36b184a701a666989cf205d72e50a438a574ae365bebb46bf379e9bd06c6a359",
51+ "dest": "llvm-project"
4952 },
5053 {
5154 "type": "archive",
52− "url": "https://github.com/apple/swift-clang/archive/swift-4.0-RELEASE.tar.gz",
53− "sha256": "d0f9a5a06074318fa237bc4847fc4a746918ab1d016e14baafc6bf17b24083d9",
54− "dest": "clang"
55− },
56− {
57− "type": "archive",
58− "url": "https://github.com/apple/swift-lldb/archive/swift-4.0-RELEASE.tar.gz",
59− "sha256": "bbcf883ea26c94f030336a1718618ee147d3e6ce32f0d3f902e13b97abd6b9fb",
60− "dest": "lldb"
61− },
62− {
63− "type": "archive",
64− "url": "https://github.com/apple/swift-llbuild/archive/swift-4.0-RELEASE.tar.gz",
65− "sha256": "2e9fe830e25c74d9597a4189132b09348fc995b2de831814a55c426198c941f4",
55+ "url": "https://github.com/apple/swift-llbuild/archive/refs/tags/swift-5.4-RELEASE.tar.gz",
56+ "sha256": "91d3e454fff11b14bf89e6ab2b61bacb39395f92d5aab336923670aaa0a7e2fc",
6657 "dest": "llbuild"
6758 },
6859 {
6960 "type": "archive",
70− "url": "https://github.com/apple/swift-package-manager/archive/swift-4.0-RELEASE.tar.gz",
71− "sha256": "fe19d370cb5fea32246bac1fd81a4c0e6932518e6e3b7fcc1913adc3b01b91e7",
61+ "url": "https://github.com/apple/swift-package-manager/archive/refs/tags/swift-5.4-RELEASE.tar.gz",
62+ "sha256": "53a9afee939ccc36bfcd019a57e3d5ffe36ffa027645f99fd3fae893d4bc69a7",
7263 "dest": "swiftpm"
7364 },
7465 {
7566 "type": "archive",
76− "url": "https://github.com/apple/swift-cmark/archive/swift-4.0-RELEASE.tar.gz",
77− "sha256": "71aea066925abb92738549051cc5e91f78b588fe0f1102c64c35d7f9078f1cef",
67+ "url": "https://github.com/apple/swift-cmark/archive/refs/tags/swift-5.4-RELEASE.tar.gz",
68+ "sha256": "ca30ea99bdad03b80939c74899ddcd7cc7e2a55d36fe357f98ff7f620442142e",
7869 "dest": "cmark"
7970 },
8071 {
8172 "type": "archive",
82− "url": "https://github.com/apple/swift-corelibs-foundation/archive/swift-4.0-RELEASE.tar.gz",
83− "sha256": "f1518ccb8b599890cfaeda6554ba7db61ec52a3ea2193c4444cd5233db0aa5f6",
73+ "url": "https://github.com/apple/swift-corelibs-foundation/archive/refs/tags/swift-5.4-RELEASE.tar.gz",
74+ "sha256": "28f2033b6bdaf0d6d0984fb3f85fafad351b0511a5b99293b2b3ba561cb27f05",
8475 "dest": "swift-corelibs-foundation"
8576 },
8677 {
8778 "type": "archive",
88− "url": "https://github.com/apple/swift-corelibs-xctest/archive/swift-4.0-RELEASE.tar.gz",
89− "sha256": "bd2ccf7c153eb62867f6e7ed25e8319f3d29e7ed88a537e92c5167c1bb772aba",
79+ "url": "https://github.com/apple/swift-corelibs-xctest/archive/refs/tags/swift-5.4-RELEASE.tar.gz",
80+ "sha256": "aaf8a15b9ff5fde88ba594364a39534f2302ed9c6c5c251c54c93f71f0860c26",
9081 "dest": "swift-corelibs-xctest"
9182 },
9283 {
9384 "type": "archive",
94− "url": "https://github.com/apple/swift-corelibs-libdispatch/archive/swift-4.0-RELEASE.tar.gz",
95− "sha256": "9e63da11de3e05482411c169f5055bafa7ab08f7319e91bf8819601900f29732",
85+ "url": "https://github.com/apple/swift-corelibs-libdispatch/archive/refs/tags/swift-5.4-RELEASE.tar.gz",
86+ "sha256": "bafbcc1feaf8ac3a82edffde27b85820936cbfd0d194c9c1a320a13c356083c0",
9687 "dest": "swift-corelibs-libdispatch"
9788 }
9889 ]
9990 },
91+ {
92+ "name": "sourcekit-lsp",
93+ "buildsystem": "simple",
94+ "build-commands": [
95+ "swift build",
96+ "install -Dm755 .build/debug/sourcekit-lsp $FLATPAK_DEST/sourcekit-lsp"
97+ ],
98+ "sources": [
99+ {
100+ "type": "archive",
101+ "url": "https://github.com/apple/sourcekit-lsp/archive/refs/tags/swift-5.4-RELEASE.tar.gz",
102+ "sha256": "c3f80427f087e7422bfe0359bda81d1c1a6e2e7295eebdaa559e2323670460e9"
103+ }
104+ ]
105+ },
100106 {
101107 "name": "appdata",
102108 "buildsystem": "simple",