-
Notifications
You must be signed in to change notification settings - Fork 13
/
com.gfxbench.gfxbench.yaml
52 lines (52 loc) · 1.71 KB
/
com.gfxbench.gfxbench.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
# TODO: try to fix or drop
app-id: com.gfxbench.gfxbench
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: gfxbench
finish-args:
- --device=dri
- --env=QT_QPA_PLATFORM=xcb
- --share=ipc
- --socket=pulseaudio
- --socket=x11
modules:
- name: gfxbench
buildsystem: simple
build-commands:
- install -Dm755 apply_extra gfxbench -t ${FLATPAK_DEST}/bin/
- install -Dm644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications/
- install -Dm644 ${FLATPAK_ID}.png -t ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/
- |
install -Dm644 /dev/stdin ${FLATPAK_DEST}/etc/ld.so.conf <<EOF
/app/extra/platforms
EOF
sources:
- type: extra-data
url: https://gfxbench.com/download/gfxbench_gl-linux-qt-4.0.13+community_64bit.sh
sha256: 1676aa9147b6783067a479c774061a52eb2a1727e32fff50271e1c41a68aeeae
size: 52797062
filename: gfxbench-installer.sh
- type: script
dest-filename: apply_extra
commands:
- set -e
- |
dd iflag=skip_bytes \
skip=$(head -n 239 gfxbench-installer.sh | wc -c ) \
if=gfxbench-installer.sh |
bsdtar -xf - \
--exclude=gfxbench_gl.desktop \
--exclude=gfxbench_gl.png \
--exclude=start.sh
- rm -f gfxbench-installer.sh
- ln -s /var/config/gfxbench config
- type: script
dest-filename: gfxbench
commands:
- mkdir -p /var/config/gfxbench
- exec /app/extra/gfxbench_gl "$@"
- type: file
path: com.gfxbench.gfxbench.desktop
- type: file
path: com.gfxbench.gfxbench.png