forked from Taiko2k/Tauon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
122 lines (112 loc) · 2.91 KB
/
snapcraft.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: tauon
version: git
adopt-info: tauon
grade: stable
confinement: strict
base: core18
architectures:
- amd64
apps:
tauon:
command: tauon.py
common-id: tauonmb
desktop: usr/share/applications/tauonmb.desktop
environment:
PYSDL2_DLL_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET
extensions:
- gnome-3-28
plugs:
- x11
- desktop
- desktop-legacy
- wayland
- unity7
- home
- network
- removable-media
- gsettings
- opengl
- audio-playback
- pulseaudio
slots:
- mpris
parts:
desktop-icon:
source: .
plugin: nil
override-build: |
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/scalable/apps
cp -v extra/tauonmb.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/
cp -v extra/tauonmb.svg $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/scalable/apps/
cp -v extra/tauonmb-symbolic.svg $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/scalable/apps/
sed -i 's|Icon=tauonmb|Icon=/usr/share/icons/hicolor/scalable/apps/tauonmb.svg|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/tauonmb.desktop
snapcraftctl build
python-deps:
plugin: python
source: .
python-version: python3
requirements:
- requirements.txt
stage-packages:
- libsdl2-2.0-0
- libsdl2-image-2.0-0
- fonts-noto
- python3-gi
- python3-cairo
- python3-dbus
- python-gst-1.0
- python3-gi-cairo
- gir1.2-notify-0.7
- gir1.2-rsvg-2.0
- gir1.2-appindicator3-0.1
- freeglut3-dev
- libgstreamer1.0-0
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-ugly
- gstreamer1.0-pulseaudio
- gstreamer1.0-libav
- libgpm2
- libslang2
- libpulse0
- libglu1-mesa
- libgl1
- ffmpeg
- p7zip-full
- unrar
- curl
override-build: |
snapcraftctl build
# temp fix for https://github.com/marcusva/py-sdl2/issues/148
cd $SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET
ln -sf libSDL2-2.0.so.0 libSDL2-2.0.so
ln -sf libSDL2_image-2.0.so.0 libSDL2_image-2.0.so
tauon:
plugin: dump
source: .
parse-info: [extra/com.github.taiko2k.tauonmb.appdata.xml]
build-packages:
- gettext
- libflac-dev
- libpulse-dev
- libvorbis-dev
- libopusfile-dev
- libmpg123-dev
- libsamplerate0-dev
- libopenmpt-dev
stage-packages:
- flac
- libpulse0
- libvorbis0a
- libopusfile0
- libmpg123-0
- libsamplerate0
- libopenmpt0
override-build: |
chmod +x compile-translations.py
python3 compile-translations.py
bash compile-phazor.sh
snapcraftctl build
chmod +x tauon.py