-
Notifications
You must be signed in to change notification settings - Fork 8
/
com.st.STM32CubeIDE.yaml
84 lines (81 loc) · 3.16 KB
/
com.st.STM32CubeIDE.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
app-id: com.st.STM32CubeIDE
runtime: org.gnome.Platform
runtime-version: '44'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk17
command: stm32cubeide
finish-args:
- --socket=x11
- --socket=pulseaudio
- --share=network
- --filesystem=home
- --device=all
- --env=PATH=/app/bin:/app/jdk/bin:/usr/bin
- --persist=.eclipse
- --persist=.java
- --persist=.stmcube
- --persist=STM32Cube
- --persist=.saros
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk17/installjdk.sh
- name: ncurses
no-autogen: true
config-opts:
- --prefix=${FLATPAK_DEST}
- --with-shared
- --with-termlib=tinfo
- --with-abi-version=5
make-install-args:
- install.libs
cleanup:
- /bin
- /include
- /share/man
- /lib/*.a
- /lib/*.la
sources:
- type: archive
url: https://ftp.gnu.org/gnu/ncurses/ncurses-6.4.tar.gz
sha256: 6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159
x-checker-data:
type: anitya
project-id: 234776
stable-only: true
url-template: https://ftp.gnu.org/gnu/ncurses/ncurses-$version.tar.gz
- shared-modules/libusb/libusb.json
- name: stm32cubeide
buildsystem: simple
build-commands:
- mkdir ${FLATPAK_DEST}/stm32cubeide
- chmod +x st-stlink-server.2.1.0-1-linux-amd64.install.sh
- ./st-stlink-server.2.1.0-1-linux-amd64.install.sh --tar -xvf
- mv stlink-server ${FLATPAK_DEST}/bin/stlink-server
- chmod +x st-stm32cubeide_1.12.0_14980_20230301_1550_amd64.sh
- ./st-stm32cubeide_1.12.0_14980_20230301_1550_amd64.sh --tar -xvf
- tar -xzvf st-stm32cubeide_1.12.0_14980_20230301_1550_amd64.tar.gz -C ${FLATPAK_DEST}/stm32cubeide/
- install -D icon.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
- install -t ${FLATPAK_DEST}/share/applications/ -Dm644 com.st.STM32CubeIDE.desktop
- install -t ${FLATPAK_DEST}/share/appdata/ -Dm644 com.st.STM32CubeIDE.metainfo.xml
- install -t ${FLATPAK_DEST}/bin -Dm755 stm32cubeide
sources:
- type: archive
url: https://www.st.com/content/ccc/resource/technical/software/sw_development_suite/group0/bc/99/f5/62/06/da/4d/eb/stm32cubeide_lnx/files/st-stm32cubeide_1.12.0_14980_20230301_1550_amd64.sh.zip/jcr:content/translations/en.st-stm32cubeide_1.12.0_14980_20230301_1550_amd64.sh.zip
sha256: 287129ea5d1fc283ae34404ccb15891f8e767587d43f9c43504ee9cdb73d55f7
- type: archive
url: https://www.st.com/content/ccc/resource/technical/software/sw_development_suite/group0/09/9f/79/67/ed/f9/45/d0/st-link-server_v2-1-0/files/st-link-server_v2-1-0.zip/jcr:content/translations/en.st-link-server_v2-1-0.zip
sha256: 135d924b303b8838b45fe5078def02037502f93023520f6003690fb754a1e123
- type: file
path: com.st.STM32CubeIDE.metainfo.xml
- type: file
path: com.st.STM32CubeIDE.desktop
- type: file
path: icon.png
- type: script
dest-filename: stm32cubeide
commands:
- unset FLATPAK_SANDBOX_DIR
- exec /app/stm32cubeide/stm32cubeide "$@"