-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathorg.freedesktop.Sdk.Extension.openjdk17.yaml
202 lines (202 loc) · 7.71 KB
/
org.freedesktop.Sdk.Extension.openjdk17.yaml
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
id: org.freedesktop.Sdk.Extension.openjdk17
branch: '24.08'
runtime: org.freedesktop.Sdk
runtime-version: '24.08'
build-extension: true
sdk: org.freedesktop.Sdk
separate-locales: false
cleanup:
- /share/info
- /share/man
build-options:
no-debuginfo: true
strip: true
prefix: /usr/lib/sdk/openjdk17
env:
V: '1'
modules:
- name: bootstrap_jdk
buildsystem: simple
cleanup:
- '*'
sources:
- type: file
only-arches:
- x86_64
url: https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.14%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.14_7.tar.gz
dest-filename: java-openjdk.tar.gz
sha256: a3af83983fb94dd7d11b13ba2dba0fb6819dc2caaf87e6937afd22ad4680ae9a
x-checker-data:
type: json
url: https://api.adoptium.net/v3/assets/latest/17/hotspot?os=linux&architecture=x64&image_type=jdk
version-query: .[0].version.semver
url-query: .[0].binary.package.link
versions:
- ==: 17
- type: file
only-arches:
- aarch64
url: https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.14%2B7/OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.14_7.tar.gz
dest-filename: java-openjdk.tar.gz
sha256: 62efc3e83fc9bcd08db7c4f02977328cb3559a54519078d8337314cf025d19b7
x-checker-data:
type: json
url: https://api.adoptium.net/v3/assets/latest/17/hotspot?os=linux&architecture=aarch64&image_type=jdk
version-query: .[0].version.semver
url-query: .[0].binary.package.link
versions:
- ==: 17
build-commands:
- mkdir -p $FLATPAK_DEST/bootstrap-java
- tar xf java-openjdk.tar.gz --strip-components=1 --directory=$FLATPAK_DEST/bootstrap-java
- name: java
buildsystem: autotools
no-parallel-make: true
config-opts:
- --with-boot-jdk=/usr/lib/sdk/openjdk17/bootstrap-java
- --with-jvm-variants=server
- --with-version-pre=
- --with-version-opt=
- --with-vendor-version-string=21.9
- --with-vendor-name=Flathub
- --with-vendor-url=https://flathub.org
- --with-vendor-bug-url=https://github.com/flathub/org.freedesktop.Sdk.Extension.openjdk17/issues
- --with-debug-level=release
- --with-native-debug-symbols=internal
- --enable-unlimited-crypto
- --with-zlib=system
- --with-libjpeg=system
- --with-giflib=system
- --with-libpng=system
- --with-lcms=system
- --with-harfbuzz=system
- --with-stdc++lib=dynamic
- --with-extra-cxxflags=-grecord-gcc-switches -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection
- --with-extra-cflags=-grecord-gcc-switches -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection
- --with-extra-ldflags=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed
- --disable-javac-server
- --disable-warnings-as-errors
make-args:
- LOG=info
- images
post-install:
- (cd $FLATPAK_DEST/jvm && ln -s openjdk-17.* openjdk-17)
sources:
- type: git
url: https://github.com/adoptium/jdk17u.git
tag: jdk-17.0.14+7
commit: c5c90ffa45d0c14bcb013164f0992938eb4740ab
x-checker-data:
type: json
url: https://api.github.com/repos/adoptium/temurin17-binaries/releases/latest
is-main-source: true
tag-query: .tag_name
- type: patch
path: 0001-Avoid-requiring-pcsc-development-files-at-runtime.patch
- type: patch
path: 0002-java-remove-version-build.patch
- type: shell
commands:
- chmod a+x configure
- sed -i -e "s|@prefix@|$FLATPAK_DEST|" make/autoconf/spec.gmk.in
- git describe --match jdk-17.*+* HEAD | sed -e 's/jdk-17.*+\(\)/VERSION_BUILD=\1/' >> make/conf/version-numbers.conf
- name: cacerts
buildsystem: simple
sources:
- type: file
path: extract_cacerts.sh
build-commands:
- ./extract_cacerts.sh $FLATPAK_DEST/jvm/openjdk-17
- name: ant
buildsystem: simple
cleanup:
- '*.bat'
- '*.cmd'
sources:
- type: file
url: http://archive.apache.org/dist/ant/binaries/apache-ant-1.10.15-bin.tar.gz
dest-filename: apache-ant-bin.tar.gz
sha512: d78427aff207592c024ff1552dc04f7b57065a195c42d398fcffe7a0145e8d00cd46786f5aa52e77ab0fdf81334f065eb8011eecd2b48f7228e97ff4cb20d16c
x-checker-data:
type: anitya
project-id: 50
stable-only: true
is-main-source: false
url-template: http://archive.apache.org/dist/ant/binaries/apache-ant-$version-bin.tar.gz
build-commands:
- mkdir -p $FLATPAK_DEST/ant
- tar xf apache-ant-bin.tar.gz --strip-components=1 --directory=$FLATPAK_DEST/ant
- ln -s $FLATPAK_DEST/ant/bin/ant $FLATPAK_DEST/bin
- name: maven
buildsystem: simple
cleanup:
- '*.bat'
- '*.cmd'
sources:
- type: file
url: http://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz
dest-filename: apache-maven-bin.tar.gz
sha512: a555254d6b53d267965a3404ecb14e53c3827c09c3b94b5678835887ab404556bfaf78dcfe03ba76fa2508649dca8531c74bca4d5846513522404d48e8c4ac8b
x-checker-data:
type: anitya
project-id: 1894
stable-only: true
is-main-source: false
url-template: http://archive.apache.org/dist/maven/maven-3/$version/binaries/apache-maven-$version-bin.tar.gz
versions:
<: 4.0.0
build-commands:
- mkdir -p $FLATPAK_DEST/maven
- tar xf apache-maven-bin.tar.gz --strip-components=1 --exclude=jansi-native --directory=$FLATPAK_DEST/maven
- ln -s $FLATPAK_DEST/maven/bin/mvn $FLATPAK_DEST/maven/bin/mvnDebug $FLATPAK_DEST/bin
- name: gradle
buildsystem: simple
cleanup:
- '*.bat'
sources:
- type: file
url: https://services.gradle.org/distributions/gradle-8.12.1-bin.zip
dest-filename: gradle-bin.zip
sha256: 8d97a97984f6cbd2b85fe4c60a743440a347544bf18818048e611f5288d46c94
x-checker-data:
type: json
url: https://services.gradle.org/versions/current
is-main-source: false
version-query: .version
url-query: .downloadUrl
build-commands:
- unzip -q gradle-bin.zip -d $FLATPAK_DEST
- mv $FLATPAK_DEST/gradle-* $FLATPAK_DEST/gradle
- ln -s $FLATPAK_DEST/gradle/bin/gradle $FLATPAK_DEST/bin
- name: scripts
buildsystem: simple
sources:
- type: script
commands:
- mkdir -p /app/jre/bin
- cd /usr/lib/sdk/openjdk17/jvm/openjdk-17
- cp -ra conf lib release /app/jre/
- rm /app/jre/lib/src.zip /app/jre/lib/ct.sym
- cp -ra bin/{java,keytool,rmiregistry} /app/jre/bin
dest-filename: install.sh
- type: script
commands:
- mkdir -p /app/jdk/
- cd /usr/lib/sdk/openjdk17/jvm/openjdk-17
- cp -ra bin conf include jmods lib release /app/jdk/
dest-filename: installjdk.sh
- type: script
commands:
- export JAVA_HOME=/usr/lib/sdk/openjdk17/jvm/openjdk-17
- export PATH=$PATH:/usr/lib/sdk/openjdk17/bin
dest-filename: enable.sh
build-commands:
- cp enable.sh install.sh installjdk.sh /usr/lib/sdk/openjdk17/
- name: appdata
buildsystem: simple
sources:
- type: file
path: org.freedesktop.Sdk.Extension.openjdk17.appdata.xml
build-commands:
- mkdir -p ${FLATPAK_DEST}/share/metainfo
- cp org.freedesktop.Sdk.Extension.openjdk17.appdata.xml ${FLATPAK_DEST}/share/metainfo