-
Notifications
You must be signed in to change notification settings - Fork 2
/
com.github.reduz.ChibiTracker.yaml
55 lines (55 loc) · 1.99 KB
/
com.github.reduz.ChibiTracker.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
53
54
55
app-id: com.github.reduz.ChibiTracker
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: chibitracker
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --socket=pulseaudio
- --filesystem=home
- --device=dri
cleanup:
- /bin/sdl-config
- /include
- /lib/*.a
- /lib/pkgconfig
- /share/aclocal
modules:
- shared-modules/SDL/sdl12-compat.json
- name: scons
buildsystem: simple
cleanup: ['*']
sources:
- type: archive
sha256: cad573b329b6a5bc7e654b01f0231064acc979026af68a9e467ddb32bf2ee501
url: https://downloads.sourceforge.net/project/scons/scons/4.8.1/SCons-4.8.1.tar.gz
build-commands:
- pip3 install --no-index --no-build-isolation --prefix=${FLATPAK_DEST} .
- name: chibitracker
buildsystem: simple
build-commands:
- scons
- scons install prefix=${FLATPAK_DEST}
- install -Dm644 com.github.reduz.ChibiTracker.metainfo.xml ${FLATPAK_DEST}/share/metainfo/com.github.reduz.ChibiTracker.metainfo.xml
- install -Dm644 com.github.reduz.ChibiTracker.desktop ${FLATPAK_DEST}/share/applications/com.github.reduz.ChibiTracker.desktop
- install -Dm644 program/cticon.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/com.github.reduz.ChibiTracker.png
- |
ICON_IN='program/cticon.png'
ICON_OUT='com.github.reduz.ChibiTracker.png'
for s in {32,64,128,256,512} ; do
SIZE="${s}x${s}"
ffmpeg -y -i "${ICON_IN}" -update 1 -s "${SIZE}" -sws_flags neighbor "${ICON_OUT}"
install -p -Dm644 "${ICON_OUT}" -t "${FLATPAK_DEST}/share/icons/hicolor/${SIZE}/apps/"
done
sources:
- type: git
url: https://github.com/reduz/chibitracker.git
commit: 735cf514b764b9388f53637f6ba691c991603577
- type: patch
path: patches/type-fix.patch
- type: file
path: com.github.reduz.ChibiTracker.desktop
- type: file
path: com.github.reduz.ChibiTracker.metainfo.xml