-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsnapcraft.yaml
112 lines (105 loc) · 3.46 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
name: subtitld
summary: Subtitld
description: |
Subtitld is a software to create and edit subtitles. Visit http://subtitld.org/ for more information.
icon: subtitld/graphics/subtitld.png
confinement: strict
adopt-info: subtitld
base: core20
compression: lzo
plugs:
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes:gtk-3-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes:icon-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes:sounds-themes
gsettings: null
apps:
subtitld:
command: bin/desktop-launch $SNAP/bin/subtitld
environment:
LC_ALL: C.UTF-8
PYTHONPATH: $SNAP/lib/python3.8/site-packages:$PYTHONPATH
LIBRARY_PATH: "$LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET"
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lapack:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/samba:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/vdpau:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri"
QT_QPA_PLATFORMTHEME: gtk3
# DISABLE_WAYLAND: 1
plugs:
- gsettings
- opengl
- home
- network
- network-bind
- browser-support
- unity7
- x11
- optical-drive
- wayland
- desktop
- removable-media
- mount-observe
- audio-playback
parts:
prepare:
plugin: nil
build-packages:
- software-properties-common
prime: [-*]
desktop-qt6:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
plugin: make
after: [prepare]
make-parameters: ["FLAVOR=qt5"]
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
stage-packages:
- libopengl0
- libglx0
- libgl1
- libegl1
- libxkbcommon0
- libfontconfig1
- qtwayland5
- libqt5gui5
- qt5-style-plugins
- libmpv1
- ffmpeg
- libffms2-4
- freeglut3
- libglu1-mesa
- libgl1-mesa-glx
- libegl1-mesa
- libwayland-egl1-mesa
- libva-glx2
- libvdpau-va-gl1
- libglvnd0
- libxcb-glx0
- python3-opengl
subtitld:
plugin: python
source: .
after: [prepare, desktop-qt6]
build-packages:
- python3-dev
- python3-setuptools
override-pull: |
snapcraftctl pull
snapcraftctl set-version "$VERSION_NUMBER"
snapcraftctl set-grade "stable"
override-build: |
snapcraftctl build
sed -i 's/find_library(name)/"libffms2.so.4.0.0"/g' $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/ffms2/get_library.py
sed -i 's/raise OSError("Cannot find libmpv in the usual places. Depending on your distro, you may try installing an "/sofile = "libmpv.so.1"/g' $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/mpv.py
sed -i 's/ "mpv-devel or mpv-libs package. If you have libmpv around but this script can/ \#/g' $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/mpv.py
sed -i 's/ "the documentation for ctypes/ \#/g' $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/mpv.py
sed -i 's/ "filename.")/ \#/g' $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/mpv.py