forked from TorrSamaho/io.github.doublecmd.DoubleCommander
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathio.github.doublecmd.DoubleCommander.yml
More file actions
91 lines (91 loc) · 3.83 KB
/
io.github.doublecmd.DoubleCommander.yml
File metadata and controls
91 lines (91 loc) · 3.83 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
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
app-id: io.github.doublecmd.DoubleCommander
runtime: org.kde.Platform
runtime-version: '6.10'
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.freepascal
command: doublecmd
finish-args:
- --share=ipc
- --share=network
- --socket=x11
# - --socket=fallback-x11
- --socket=wayland
- --socket=ssh-auth
- --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:
# The qt6pas part was copied from https://github.com/flathub/io.github.cudatext.CudaText-Qt and slightly adjusted.
- name: qt6pas
buildsystem: qmake
sources:
- type: shell
commands:
- cp -r /usr/lib/sdk/freepascal/share/lazarus/lcl/interfaces/qt6/cbindings/. .
- sed -e"s/target.path = .\+/target.path = '\/app\/lib'/" -i ./Qt6Pas.pro
# The p7zip part was copied from https://github.com/flathub/org.sabnzbd.sabnzbd and slightly adjusted.
- name: p7zip
no-autogen: true
make-args:
- 7za
sources:
- type: archive
url: https://github.com/p7zip-project/p7zip/archive/v17.05/p7zip-v17.05.tar.gz
sha256: d2788f892571058c08d27095c22154579dfefb807ebe357d145ab2ddddefb1a6
- type: shell
commands:
- sed -i 's|/usr/local|/app|g' makefile.common
- name: libunrar
sources:
- type: archive
url: https://www.rarlab.com/rar/unrarsrc-7.2.3.tar.gz
sha256: 3995af0aa32b1505a566da053725551a1f0698dc42b2fdf7ba7d65db0d004e33
buildsystem: simple
build-commands:
- make -j lib
- make DESTDIR=${FLATPAK_DEST} install-lib
# The libssh2 part was copied from https://github.com/scx/uget-flatpak/blob/master/libssh2.yaml and adjusted.
- name: libssh2
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DBUILD_SHARED_LIBS:BOOL=ON
sources:
- type: archive
url: https://www.libssh2.org/download/libssh2-1.11.1.tar.gz
sha256: d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7
post-install:
- install -p -D -m 0644 "../COPYING" -t "${FLATPAK_DEST}/share/licenses/libssh2/";
- name: doublecmd
sources:
- type: git
url: https://github.com/doublecmd/doublecmd.git
tag: v1.1.32
commit: 187d1473a208cc40bc8f943ec60a2fa2c41c5cf6
# 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=qt6 ./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