-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.github.avojak.foreman.yml
104 lines (93 loc) · 3.49 KB
/
com.github.avojak.foreman.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
app-id: com.github.avojak.foreman
runtime: io.elementary.Platform
runtime-version: '7'
sdk: io.elementary.Sdk
command: com.github.avojak.foreman
finish-args:
- '--share=ipc'
- '--share=network'
- '--socket=fallback-x11'
- '--socket=wayland'
- '--filesystem=home' # Temporary
- '--env=PATH=/app/jdk/bin:/app/bin:/usr/bin'
modules:
- name: bootstrap-jdk
buildsystem: simple
cleanup:
- '*'
sources:
- type: file
only-arches:
- x86_64
url: https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz
sha256: 0022753d0cceecacdd3a795dd4cea2bd7ffdf9dc06e22ffd1be98411742fbb44
dest-filename: openjdk.tar.gz
- type: file
only-arches:
- aarch64
url: https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-aarch64_bin.tar.gz
sha256: 13bfd976acf8803f862e82c7113fb0e9311ca5458b1decaef8a09ffd91119fa4
dest-filename: openjdk.tar.gz
build-commands:
- mkdir -p $FLATPAK_DEST/bootstrap-java
- tar -xf openjdk.tar.gz --directory=$FLATPAK_DEST/bootstrap-java
post-install:
- cd $FLATPAK_DEST/bootstrap-java && ln -s jdk-17.0.2 jdk
- name: openjdk
buildsystem: simple
build-commands:
# TODO: Why are all the JDK modules required? Without it we get "java.lang.IllegalStateException: No jar file system provider found" when starting the server
# - $FLATPAK_DEST/bootstrap-java/jdk/bin/jlink --no-header-files --no-man-pages --compress=2 --add-modules $($FLATPAK_DEST/bootstrap-java/jdk/bin/java --list-modules | grep -v 'jdk.' | cut -d '@' -f 1 | xargs | sed -e 's/\s/,/g') --output jre
- $FLATPAK_DEST/bootstrap-java/jdk/bin/jlink --no-header-files --no-man-pages --compress=2 --add-modules $($FLATPAK_DEST/bootstrap-java/jdk/bin/java --list-modules | cut -d '@' -f 1 | xargs | sed -e 's/\s/,/g') --output jdk
- mv jdk $FLATPAK_DEST/jdk
# - name: livechart
# buildsystem: meson
# sources:
# - type: git
# url: https://github.com/lcallarec/live-chart.git
# tag: 1.9.1
# commit: 5f8ddce715f6a9130955bc5f08437050265a317c
# - name: libnm
# buildsystem: meson
# sources:
# - type: git
# url: https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
# tag: 1.36.6
# commit: 2090a918b597e267553879d87446bab6b7fe8ec6
# modules:
# - name: libndp
# buildsystem: autotools
# sources:
# - type: git
# url: https://github.com/jpirko/libndp.git
# tag: v1.8
# commit: 009ce9cd9b950ffa1f4f94c9436027b936850d0c
- name: libsemver
buildsystem: meson
sources:
- type: git
url: https://github.com/avojak/libsemver.git
tag: 1.0.0
commit: 03795ff37631d61a62653f087390385c7a044f19
- name: gxml
buildsystem: meson
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/gxml.git
tag: 0.20.3
commit: 3582c7eabf464ebd256a8f8ccbfc40f69800b222
- name: iproute2
buildsystem: autotools
make-install-args:
- PREFIX=/app
- DESTDIR=/app
- SBINDIR=/bin
sources:
- type: archive
url: https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-5.17.0.tar.xz
sha256: 6e384f1b42c75e1a9daac57866da37dcff909090ba86eb25a6e764da7893660e
- name: foreman
buildsystem: meson
sources:
- type: dir
path: .