-
Notifications
You must be signed in to change notification settings - Fork 15
/
org.freedesktop.Sdk.Extension.openjdk.yaml
197 lines (197 loc) · 7.97 KB
/
org.freedesktop.Sdk.Extension.openjdk.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
id: org.freedesktop.Sdk.Extension.openjdk
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/openjdk
env:
V: '1'
modules:
- name: bootstrap_jdk
buildsystem: simple
cleanup:
- '*'
sources:
- type: file
only-arches:
- x86_64
url: https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23.0.1%2B11/OpenJDK23U-jdk_x64_linux_hotspot_23.0.1_11.tar.gz
dest-filename: java-openjdk.tar.bz2
sha512: bcfc8ea1d835afcfbafc9f99c9e897588bf01e219dda936a4bda7e4982ff0b2cc2f21f5e3deadb0e1cf86a9a58295a25f8f82f9fadd2eab520817350a6a862c1
x-checker-data:
type: json
url: https://api.adoptium.net/v3/assets/latest/23/hotspot?os=linux&architecture=x64&image_type=jdk
version-query: .[0].version.semver
url-query: .[0].binary.package.link
- type: file
only-arches:
- aarch64
url: https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23.0.1%2B11/OpenJDK23U-jdk_aarch64_linux_hotspot_23.0.1_11.tar.gz
dest-filename: java-openjdk.tar.bz2
sha512: 2bc1d9e3a2741e1359915a2479b6f09a3877a6fbb9e358e01e0e5305585c3b974a7847da08857692bc2a65e9dadc77b443739ad1d963941ded37ea97ab8329a0
x-checker-data:
type: json
url: https://api.adoptium.net/v3/assets/latest/23/hotspot?os=linux&architecture=aarch64&image_type=jdk
version-query: .[0].version.semver
url-query: .[0].binary.package.link
build-commands:
- mkdir -p $FLATPAK_DEST/bootstrap-java
- tar xf java-openjdk.tar.bz2 --strip-components=1 --directory=$FLATPAK_DEST/bootstrap-java
- name: java
buildsystem: autotools
no-make-install: true
no-parallel-make: true
config-opts:
- --with-boot-jdk=/usr/lib/sdk/openjdk/bootstrap-java
- --with-jvm-variants=server
- --with-version-build=11
- --with-version-pre=
- --with-version-opt=
- --with-vendor-version-string=24.9
- --with-vendor-name=Flathub
- --with-vendor-url=https://flathub.org
- --with-vendor-bug-url=https://github.com/flathub/org.freedesktop.Sdk.Extension.openjdk/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:
- mkdir -p $FLATPAK_DEST/jvm/ $FLATPAK_DEST/bin
- cp -Lr build/linux-*-server-release/images/jdk $FLATPAK_DEST/jvm/openjdk-23
- ln -s $FLATPAK_DEST/jvm/openjdk-23/bin/* $FLATPAK_DEST/bin
sources:
- type: archive
url: https://github.com/openjdk/jdk23u/archive/refs/tags/jdk-23.0.1+11.tar.gz
sha512: 089c4a8d40fc310b85597aae6fae66951b52a3995602a444e43b173acf7289382fb362b51e53c19466983101d9cbb197922592d720b02f95cedb945adaaccb91
x-checker-data:
type: json
url: https://api.adoptium.net/v3/assets/latest/23/hotspot?os=linux&architecture=x64&image_type=jdk
version-query: .[0].release_name
url-query: '"https://github.com/openjdk/jdk23u/archive/refs/tags/" + $version
+ ".tar.gz"'
is-main-source: true
- type: shell
commands:
- chmod a+x configure
- sed -i -e "s|@prefix@|$FLATPAK_DEST|" make/autoconf/spec.gmk.template
- name: cacerts
buildsystem: simple
sources:
- type: file
path: extract_cacerts.sh
build-commands:
- ./extract_cacerts.sh $FLATPAK_DEST/jvm/openjdk-23
- 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
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
url-template: http://archive.apache.org/dist/maven/maven-3/$version/binaries/apache-maven-$version-bin.tar.gz
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.10.2-bin.zip
dest-filename: gradle-bin.zip
sha512: c48d4b7f4a7b6aa4886848ce913b099b8b7f2494b3d0ca86a21588f6482a185265fffeb0bb6da5f52b8c5f958e589d3a8be9c7fd846790ffbe12be1ad05c9f4f
x-checker-data:
type: json
url: https://api.github.com/repos/gradle/gradle/releases
version-query: map(select(.prerelease == false)) | first | .name
url-query: '["https://services.gradle.org/distributions/gradle-" + $version
+ "-bin.zip"][0]'
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/openjdk/jvm/openjdk-23
- 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/openjdk/jvm/openjdk-23
- cp -ra bin conf include jmods lib release /app/jdk/
dest-filename: installjdk.sh
- type: script
commands:
- export JAVA_HOME=/usr/lib/sdk/openjdk/jvm/openjdk-23
- export PATH=$PATH:/usr/lib/sdk/openjdk/bin
dest-filename: enable.sh
build-commands:
- cp enable.sh install.sh installjdk.sh /usr/lib/sdk/openjdk/
- name: appdata
buildsystem: simple
sources:
- type: file
path: org.freedesktop.Sdk.Extension.openjdk.appdata.xml
build-commands:
- mkdir -p ${FLATPAK_DEST}/share/metainfo
- cp org.freedesktop.Sdk.Extension.openjdk.appdata.xml ${FLATPAK_DEST}/share/metainfo