on master help sign in
Initial commit
commit0e689bcda2ac4e87ed893059d5683df62fc3b815 authorPatrick Griffis <tingping@tingping.se> dateTue 17 Oct 2017, 03:16 (9 years ago) parent746ea89
4 files changed+115
.gitignore+2 flathub.json+3 org.freedesktop.Sdk.Extension.swift.appdata.xml+12 org.freedesktop.Sdk.Extension.swift.json+98
.gitignorenew file+2
@@ -0,0 +1,2 @@
1+/build/
2+/.flatpak-builder/
flathub.jsonnew file+3
@@ -0,0 +1,3 @@
1+{
2+ "only-arches": ["x86_64", "i386"]
3+}
org.freedesktop.Sdk.Extension.swift.appdata.xmlnew file+12
@@ -0,0 +1,12 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<component type="runtime">
3+ <id>org.freedesktop.Sdk.Extension.swift</id>
4+ <metadata_license>CC0-1.0</metadata_license>
5+ <name>Swift Sdk extension</name>
6+ <summary>Swift Sdk extension</summary>
7+ <description>
8+ <p>
9+ This SDK extension allows you to build swift apps.
10+ </p>
11+ </description>
12+</component>
org.freedesktop.Sdk.Extension.swift.jsonnew file+98
@@ -0,0 +1,98 @@
1+{
2+ "id": "org.freedesktop.Sdk.Extension.swift",
3+ "branch": "1.6",
4+ "runtime": "org.freedesktop.Sdk",
5+ "sdk": "org.freedesktop.Sdk",
6+ "runtime-version": "1.6",
7+ "build-extension": true,
8+ "separate-locales": false,
9+ "appstream-compose": false,
10+ "modules": [
11+ {
12+ "name": "swift",
13+ "buildsystem": "simple",
14+ "subdir": "swift",
15+ "build-commands": [
16+ "./utils/build-script --install-prefix=/usr/lib/sdk/swift --release --lldb --llbuild --swiftpm --xctest --foundation --libdispatch",
17+ "./utils/build-script --install-prefix=/usr/lib/sdk/swift --install-lldb --install-llbuild --install-swiftpm --install-xctest --install-foundation --install-libdispatch"
18+ ],
19+ "sources": [
20+ {
21+ "type": "archive",
22+ "url": "https://github.com/apple/swift/archive/swift-4.0-RELEASE.tar.gz",
23+ "sha256": "9ebd6b634baf82e69ac9f6fae5c9c979db7c7e4bc9db149b30b575e57da99b94",
24+ "dest": "swift"
25+ },
26+ {
27+ "type": "archive",
28+ "url": "https://github.com/apple/swift-llvm/archive/swift-4.0-RELEASE.tar.gz",
29+ "sha256": "6c30d7f3190b9f76fd646f2c03a093cf768c1aa7e10898ee8281bfe88ba0feeb",
30+ "dest": "llvm"
31+ },
32+ {
33+ "type": "archive",
34+ "url": "https://github.com/apple/swift-clang/archive/swift-4.0-RELEASE.tar.gz",
35+ "sha256": "d0f9a5a06074318fa237bc4847fc4a746918ab1d016e14baafc6bf17b24083d9",
36+ "dest": "clang"
37+ },
38+ {
39+ "type": "archive",
40+ "url": "https://github.com/apple/swift-lldb/archive/swift-4.0-RELEASE.tar.gz",
41+ "sha256": "bbcf883ea26c94f030336a1718618ee147d3e6ce32f0d3f902e13b97abd6b9fb",
42+ "dest": "lldb"
43+ },
44+ {
45+ "type": "archive",
46+ "url": "https://github.com/apple/swift-llbuild/archive/swift-4.0-RELEASE.tar.gz",
47+ "sha256": "2e9fe830e25c74d9597a4189132b09348fc995b2de831814a55c426198c941f4",
48+ "dest": "llbuild"
49+ },
50+ {
51+ "type": "archive",
52+ "url": "https://github.com/apple/swift-package-manager/archive/swift-4.0-RELEASE.tar.gz",
53+ "sha256": "fe19d370cb5fea32246bac1fd81a4c0e6932518e6e3b7fcc1913adc3b01b91e7",
54+ "dest": "swiftpm"
55+ },
56+ {
57+ "type": "archive",
58+ "url": "https://github.com/apple/swift-cmark/archive/swift-4.0-RELEASE.tar.gz",
59+ "sha256": "71aea066925abb92738549051cc5e91f78b588fe0f1102c64c35d7f9078f1cef",
60+ "dest": "cmark"
61+ },
62+ {
63+ "type": "archive",
64+ "url": "https://github.com/apple/swift-corelibs-foundation/archive/swift-4.0-RELEASE.tar.gz",
65+ "sha256": "f1518ccb8b599890cfaeda6554ba7db61ec52a3ea2193c4444cd5233db0aa5f6",
66+ "dest": "swift-corelibs-foundation"
67+ },
68+ {
69+ "type": "archive",
70+ "url": "https://github.com/apple/swift-corelibs-xctest/archive/swift-4.0-RELEASE.tar.gz",
71+ "sha256": "bd2ccf7c153eb62867f6e7ed25e8319f3d29e7ed88a537e92c5167c1bb772aba",
72+ "dest": "swift-corelibs-xctest"
73+ },
74+ {
75+ "type": "archive",
76+ "url": "https://github.com/apple/swift-corelibs-libdispatch/archive/swift-4.0-RELEASE.tar.gz",
77+ "sha256": "9e63da11de3e05482411c169f5055bafa7ab08f7319e91bf8819601900f29732",
78+ "dest": "swift-corelibs-libdispatch"
79+ }
80+ ]
81+ },
82+ {
83+ "name": "appdata",
84+ "buildsystem": "simple",
85+ "build-commands": [
86+ "mkdir -p ${FLATPAK_DEST}/share/appdata",
87+ "cp org.freedesktop.Sdk.Extension.swift.appdata.xml ${FLATPAK_DEST}/share/appdata",
88+ "appstream-compose --basename=org.freedesktop.Sdk.Extension.swift --prefix=${FLATPAK_DEST} --origin=flatpak org.freedesktop.Sdk.Extension.swift"
89+ ],
90+ "sources": [
91+ {
92+ "type": "file",
93+ "path": "org.freedesktop.Sdk.Extension.swift.appdata.xml"
94+ }
95+ ]
96+ }
97+ ]
98+}