-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.thomasokken.plus42.yml
More file actions
46 lines (43 loc) · 1.63 KB
/
Copy pathcom.thomasokken.plus42.yml
File metadata and controls
46 lines (43 loc) · 1.63 KB
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
id: com.thomasokken.plus42
command: plus42dec
default-branch: stable
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --filesystem=xdg-download
modules:
- name: plus42
only-arches:
- x86_64
- aarch64
sources:
- type: archive
url: https://thomasokken.com/plus42/upstream/plus42-upstream-1.3.15.tgz
sha256: 158d6e0a666a47feeeb2d96f55416ab7570c1b2767a70e01554d22bb6e880adc
# Fix Intel library build on aarch64:
- type: file
path: patch-aarch64-include-fenv.patch
dest: gtk
- type: patch
path: patch-aarch64-build-intel-lib.patch
# Not in upstream (contacted author who prefers those to be downstream):
- type: file
path: com.thomasokken.plus42.desktop
- type: file
path: com.thomasokken.plus42.metainfo.xml
buildsystem: simple
build_commands:
- cd gtk && make -j$FLATPAK_BUILDER_N_JOBS BCD_MATH=1 AUDIO_ALSA=1
- cd gtk && make -j BCD_MATH=1 AUDIO_ALSA=1 raw2txt txt2raw
- install -Dm755 -s gtk/plus42dec ${FLATPAK_DEST}/bin/plus42dec
- install -Dm755 -s gtk/raw2txt ${FLATPAK_DEST}/bin/raw2txt
- install -Dm755 -s gtk/txt2raw ${FLATPAK_DEST}/bin/txt2raw
- install -Dm644 gtk/icon-48x48.png ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.png
- install -Dm644 gtk/icon-128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
- install -Dm644 ${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 ${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml