forked from bottlesdevs/Bottles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
102 lines (93 loc) · 2.37 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
name: bottles
version: git
summary: Bottles
description: "Easily run Windows software on Linux with 🍷 Bottles!"
license: GPL-3.0+
icon: data/icons/hicolor/scalable/apps/com.usebottles.bottles.svg
base: core20
confinement: strict
grade: stable
architectures:
- build-on: [amd64, armhf, i386]
run-on: [amd64, armhf, i386]
parts:
bottles:
after: [enable-i386]
plugin: meson
meson-parameters: [ --prefix=/usr ]
source: https://github.com/bottlesdevs/Bottles.git
override-pull: |
snapcraftctl pull
sed -i -e 's|@PYTHON@|/usr/bin/python3|g' src/bottles.in
sed -i.bak -e 's|Icon=com.usebottles.bottles|Icon=/usr/share/icons/hicolor/scalable/apps/com.usebottles.bottles.svg|g' data/com.usebottles.bottles.desktop.in
build-packages:
- python3
- python3-distutils
- gettext
- libglib2.0-dev
- appstream-util
- desktop-file-utils
- gsettings-desktop-schemas-dev
- python3-pytoml
- python3-requests
- libgtk-3-dev
stage-packages:
- python3-gi
- python3-gi-cairo
- python3-markdown
- gir1.2-gtk-3.0
- gamemode
- libgamemode0
- winbind
- libfreetype6
- cabextract
- wine
- p7zip
- p7zip-full
- patool
- on amd64:
- libc6-i386
- libglx-mesa0:i386
- libgnutls30:i386
- libvulkan1:i386
- libfreetype6:i386
organize:
snap/bottles/current/usr: usr
enable-i386:
plugin: nil
override-build: |
snapcraftctl build
if [ "$SNAPCRAFT_ARCH_TRIPLET" = "x86_64-linux-gnu" ]; then
dpkg --add-architecture i386
apt update
fi
fix-p7zip:
plugin: nil
after: [ bottles ]
override-prime: |
snapcraftctl prime
sed -i -e 's|/usr/lib/p7zip/7z|/snap/bottles/current/usr/lib/p7zip/7z|g' usr/bin/7z
apps:
bottles:
command: usr/bin/bottles
desktop: usr/share/applications/com.usebottles.bottles.desktop
extensions: [gnome-3-38]
environment:
PYTHONPATH: ${PYTHONPATH}:$SNAP/usr/lib/python3/dist-packages
plugs:
- desktop
- desktop-legacy
- home
- gsettings
- unity7
- x11
- network
- audio-playback
- removable-media
slots:
- dbus-bottles
slots:
dbus-bottles:
interface: dbus
bus: session
name: com.usebottles.bottles