11
# package-repositories:
15
# suites: [$SNAPCRAFT_APT_RELEASE]
16
# key-id: 76F1A20FF987672F
17
# url: https://dl.winehq.org/wine-builds/ubuntu/
22
source: https://github.com/diddlesnaps/snapcraft-utils-library.git
23
source-subdir: snapcraft-assets/extensible-hooks
28
- gnome-extension-hack
32
source: https://github.com/diddlesnaps/snapcraft-utils-library.git
33
source-subdir: snapcraft-assets/ld-precache
39
if [ "$SNAPCRAFT_ARCH_TRIPLET" = "x86_64-linux-gnu" ]; then
40
dpkg --add-architecture i386
48
cat <<'EOF' > gnome-extension-hack
50
rm -f "$XDG_DATA_HOME/icons/hicolor/"* || true
51
if [ "$SNAP_ARCH" = "amd64" ]; then
52
export LD_LIBRARY_PATH="$SNAP/usr/lib/i386-linux-gnu:$SNAP/lib/i386-linux-gnu:$LD_LIBRARY_PATH"
54
export LIBGL_DRIVERS_PATH="$LIBGL_DRIVERS_PATH:$SNAP/usr/lib/i386-linux-gnu/dri"
55
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIBGL_DRIVERS_PATH"
56
export LIBVA_DRIVERS_PATH="$SNAP/usr/lib/i386-linux-gnu/dri"
60
chmod +x gnome-extension-hack
62
gnome-extension-hack: bin/gnome-extension-hack
67
python-version: python3
68
source: https://github.com/lutris/lutris.git
69
parse-info: [share/metainfo/net.lutris.Lutris.metainfo.xml]
72
sed -i 's|Icon=.*|Icon=${SNAP}/share/icons/hicolor/scalable/apps/lutris.svg|' share/applications/net.lutris.Lutris.desktop
74
- gobject-introspection
75
- libgirepository1.0-dev
80
- python3-setproctitle
91
- gir1.2-gnomedesktop-3.0
106
- python3-setproctitle
122
- x11-xserver-utils:i386
126
- -usr/lib/*/libjavascript*
127
- -usr/lib/*/libwebkit*
128
- -usr/share/doc/cpp/README.Debian
129
- -usr/share/man/man1/cpp-7.1.gz
134
- snap/command-chain/snapcraft-runner
135
- snap/command-chain/desktop-launch
136
- bin/gnome-extension-hack
139
- snap/command-chain/snapcraft-runner
140
- snap/command-chain/desktop-launch
141
- bin/gnome-extension-hack
145
bind-file: $SNAP_DATA/etc/ld.so.cache
151
name: net.lutris.Lutris
154
HOME: $SNAP_USER_COMMON
158
command: bin/gnome-extension-hack $SNAP/usr/bin/python3 $SNAP/bin/lutris -d
159
extensions: [gnome-3-28]
160
desktop: share/applications/net.lutris.Lutris.desktop
161
common-id: net.lutris.Lutris
182
- screen-inhibit-control
190
# extensions: [gnome-3-28]
191
# command: usr/bin/wine-stable
194
# extensions: [gnome-3-28]
195
# command: usr/bin/wine64-stable
198
# extensions: [gnome-3-28]
199
# command: usr/bin/winecfg-stable