forked from flathub/org.freedesktop.Sdk.Extension.ldc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.freedesktop.Sdk.Extension.ldc.yml
148 lines (140 loc) · 4.91 KB
/
org.freedesktop.Sdk.Extension.ldc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
app-id: org.freedesktop.Sdk.Extension.ldc
branch: '23.08'
runtime: org.freedesktop.Sdk
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
build-extension: true
separate-locales: false
appstream-compose: false
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm16
build-options:
prefix: /usr/lib/sdk/ldc
prepend-path: /usr/lib/sdk/llvm16/bin
prepend-ld-library-path: /usr/lib/sdk/llvm16/lib
cleanup:
- /bootstrap
modules:
- name: ldc-bootstrap
buildsystem: simple
build-commands:
- mkdir -p /usr/lib/sdk/ldc/bootstrap
- cp -av * /usr/lib/sdk/ldc/bootstrap/
cleanup:
- '*'
sources:
- type: archive
only-arches:
- x86_64
url: https://github.com/ldc-developers/ldc/releases/download/v1.39.0/ldc2-1.39.0-linux-x86_64.tar.xz
sha256: f50cdacd11c923b96e57edab15cacff6a30c7ebff4b7e495fc684eed0a27ae17
x-checker-data:
type: json
url: https://api.github.com/repos/ldc-developers/ldc/releases/latest
version-query: .tag_name | sub("^[vV]"; "")
url-query: >-
.assets | map(select(.name=="ldc2-\($version)-linux-x86_64.tar.xz")) |
first | .browser_download_url
- type: archive
only-arches:
- aarch64
url: https://github.com/ldc-developers/ldc/releases/download/v1.39.0/ldc2-1.39.0-linux-aarch64.tar.xz
sha256: bafba183432dc8c277d07880d6dd17b4b1b3050808bef0be07875a41cda6dfcf
x-checker-data:
type: json
url: https://api.github.com/repos/ldc-developers/ldc/releases/latest
version-query: .tag_name | sub("^[vV]"; "")
url-query: >-
.assets | map(select(.name=="ldc2-\($version)-linux-aarch64.tar.xz"))
| first | .browser_download_url
- name: ldc-cycle
build-options:
prefix: /usr/lib/sdk/ldc/cycle
append-path: /usr/lib/sdk/ldc/bootstrap/bin
buildsystem: cmake-ninja
config-opts: &ldc_config_opts
- -DLDC_WITH_LLD:BOOL=OFF
sources:
- &ldc-source
type: archive
url: https://github.com/ldc-developers/ldc/releases/download/v1.34.0/ldc-1.34.0-src.tar.gz
sha256: 3005c6e9c79258538c83979766767a59e3d74f3cb90ac2cb0dce5d7573beb719
x-checker-data:
type: json
url: https://api.github.com/repos/ldc-developers/ldc/releases/latest
tag-query: .tag_name
version-query: $tag | sub("^[vV]"; "")
url-query: >-
.assets | map(select(.name=="ldc-\($version)-src.tar.gz")) | first | .browser_download_url
is-main-source: true
cleanup:
- '*'
- name: ldc
build-options:
prepend-path: /usr/lib/sdk/ldc/cycle/bin
buildsystem: cmake-ninja
config-opts: *ldc_config_opts
sources:
- *ldc-source
- name: dtools
buildsystem: simple
build-options:
prepend-path: /usr/lib/sdk/ldc/bin
build-commands:
- ldmd2 -O -release ddemangle.d -ofddemangle
- ldmd2 -O -release DustMite/dustmite.d DustMite/splitter.d DustMite/polyhash.d
-ofdustmite
- ldmd2 -O -release rdmd.d -ofrdmd
- install -Dsm0755 ddemangle dustmite rdmd /usr/lib/sdk/ldc/bin/
sources:
- type: git
url: https://github.com/dlang/tools.git
tag: v2.109.1
commit: 628abac913c6ad259fc53595e7f9bad2a899d685
x-checker-data:
type: git
tag-pattern: ^v([\d\.]+)$
- name: dub
buildsystem: simple
build-options:
prepend-path: /usr/lib/sdk/ldc/bin
build-commands:
- DMD=ldmd2 ./build.d
- install -s bin/dub /usr/lib/sdk/ldc/bin/
sources:
- type: git
url: https://github.com/dlang/dub.git
tag: v1.38.1
commit: fbf3c173746cd33f09486d8552beaddb8b24d658
x-checker-data:
type: json
url: https://api.github.com/repos/dlang/dub/releases/latest
tag-query: .tag_name
version-query: $tag | sub("^[vV]"; "")
- name: scripts
buildsystem: simple
build-commands:
- cp {install,enable}.sh /usr/lib/sdk/ldc
sources:
- type: script
commands:
- export PATH="$PATH:/usr/lib/sdk/ldc/bin"
- export LIBRARY_PATH="$LIBRARY_PATH:/usr/lib/sdk/ldc/lib"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/sdk/ldc/lib"
dest-filename: enable.sh
- type: script
commands:
- mkdir -p ${FLATPAK_DEST}/lib
- cp -r /usr/lib/sdk/ldc/lib/lib{druntime,phobos2}-ldc-shared.so* /usr/lib/sdk/ldc/lib/libldc-jit.so*
${FLATPAK_DEST}/lib/
dest-filename: install.sh
- name: appdata
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/share/metainfo
- cp ${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo
- appstream-compose --basename=${FLATPAK_ID} --prefix=${FLATPAK_DEST} --origin=flatpak
${FLATPAK_ID}
sources:
- type: file
path: org.freedesktop.Sdk.Extension.ldc.metainfo.xml