forked from TorrSamaho/io.github.doublecmd.DoubleCommander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
io.github.doublecmd.DoubleCommander.yml
56 lines (56 loc) · 2.34 KB
/
io.github.doublecmd.DoubleCommander.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
app-id: io.github.doublecmd.DoubleCommander
runtime: org.kde.Platform
runtime-version: '5.15-23.08'
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.freepascal
command: doublecmd
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --socket=wayland
- --filesystem=host
# Allow DC to see the configs of other flatpak apps
- --filesystem=~/.var/app
# For external archivers, e.g. 7za, to work, DC needs access to /tmp
- --filesystem=/tmp
- --device=dri
- --talk-name=org.freedesktop.Flatpak
modules:
- name: qt5pas
buildsystem: qmake
config-opts:
- -after
- target.path=/app/lib
sources:
- type: shell
commands:
- cp -r /usr/lib/sdk/freepascal/share/lazarus/lcl/interfaces/qt5/cbindings/. .
- name: doublecmd
sources:
- type: git
url: https://github.com/doublecmd/doublecmd.git
tag: v1.1.9
commit: b220a50e903bb466ad5be0334c80abd9ea42faaa
# This is necessary for "git2revisioninc.cmd" to work, i.e., to determine "Revision" and "Commit".
disable-shallow-clone: true
- type: file
path: io.github.doublecmd.DoubleCommander.metainfo.xml
buildsystem: simple
build-commands:
# The install script needs to be patched, so that we don't install in "usr".
# https://github.com/hughsie/appstream-glib/issues/271
- sed -e "s|DC_INSTALL_PREFIX/usr|DC_INSTALL_PREFIX|g" install/linux/install.sh > install/linux/install-patched.sh
- chmod +x install/linux/install-patched.sh
- |
. /usr/lib/sdk/freepascal/enable.sh
lcl=qt5 ./build.sh release
install/linux/install-patched.sh --install-prefix ${FLATPAK_DEST}
post-install:
- install -Dm644 pixmaps/mainicon/alt/dcfinal.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- install -Dm644 pixmaps/mainicon/alt/128px-dcfinal.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
- install -Dm644 pixmaps/mainicon/alt/256px-dcfinal.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
- sed -e "s|Icon=doublecmd|Icon=${FLATPAK_ID}|g" install/linux/doublecmd.desktop > ${FLATPAK_ID}.desktop
- install -Dm644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications
- install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo