-
Notifications
You must be signed in to change notification settings - Fork 32
/
flatpak-app.yaml.in
72 lines (68 loc) · 2.48 KB
/
flatpak-app.yaml.in
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
# vim:set expandtab shiftwidth=2:
id: APPNAME
runtime: org.freedesktop.Platform
runtime-version: 'RUNTIME_VER'
sdk: org.freedesktop.Sdk
command: ChimeraX
build-options:
build_args:
# need to fetch files from https://cxtoolshed.rbvi.ucsf.edu/prereqs
- --share=network
#? FontConfig error while running ChimeraX --nogui
#? - --ro-bind /usr/share/fonts /run/host/fonts
finish-args:
# X11 + Xshm access
- --share=ipc
- --socket=x11
# fallback-x11 to use X11 if wayland is not found
# -- currently, we need X11
#- --socket=fallback-x11
# Wayland access
- --socket=wayland
# OpenGL rendering
- --device=dri
# Network access
- --share=network
# Share setup with other installations of ChimeraX
- --filesystem=xdg-cache/ChimeraX:create
- --filesystem=xdg-config/ChimeraX:create
- --filesystem=xdg-data/ChimeraX:create
- --filesystem=xdg-download/ChimeraX:create
# Want "Spin Movie" icon to be able to save to Desktop
- --filesystem=xdg-desktop
# Want to be able to open files in current directory on command
# line (both in shell and within ChimeraX)
# --fileystem=home allows for files in the home directory tree
# --fileystem=host allows for files in /tmp, /var/tmp, etc.
# This makes the previous filesystem entries redundent
# unless these permissions are turned off (with the
# FlatSeal flatpak application).
- --filesystem=home
- --filesystem=host
modules:
- name: chimerax
buildsystem: simple
sources:
- type: git
url: https://github.com/RBVI/ChimeraX.git
branch: BRANCH
commit: COMMIT
build-commands:
# ffmpeg fails to compile with -j
- make -f Makefile.flatpak install BUILD_TYPE
# libQt6Network.so.6 from the Qt Group needs
# libgssapi_krb5.so.2, but is not in flatpak runtime environment
- name: krb5
buildsystem: simple
sources:
- type: archive
url: https://cxtoolshed.rbvi.ucsf.edu/prereqs/krb5/krb5-1.21.2.tar.gz
sha256: 9560941a9d843c0243a71b17a7ac6fe31c7cebb5bce3983db79e52ae7e850491
build-commands:
- cd src && ./configure
- make -j -C src/util
- make -j -C src/include
# need rpath to point to installation directory, not /usr/local/lib
- (cd lib; for m in $(find . -name Makefile); do sed -i "s/SHLIB_RDIRS=.*/SHLIB_RDIRS='\$\$ORIGIN'/" $m; done)
- make -j -C src/lib
- cd src/lib && cp libkrb5.so.3 libk5crypto.so.3 libcom_err.so.3 libkrb5support.so.0 libgssapi_krb5.so.2 /app/lib/python3*/site-packages/PyQt6/Qt6/lib/