forked from visualboyadvance-m/visualboyadvance-m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
76 lines (73 loc) · 1.8 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
name: visualboyadvance-m
summary: Nintendo Game Boy Advance Emulator
description: |
An open-source Nintendo Game Boy, Super Game Boy, Game Boy Advance Emulators.
adopt-info: vbam
grade: devel
confinement: strict
base: core22
parts:
vbam:
source: https://github.com/visualboyadvance-m/visualboyadvance-m.git
override-pull: |
snapcraftctl pull
last_commit="$(git describe | sed 's/^v//; s/-.*-/-/')"
snapcraftctl set-version "${last_commit}"
sed -i.bak -e 's|Icon=visualboyadvance-m|Icon=/usr/share/icons/hicolor/scalable/apps/visualboyadvance-m.svg|g' src/wx/visualboyadvance-m.desktop
plugin: cmake
cmake-generator: Ninja
stage-packages:
- libsdl2-2.0-0
- libsfml-network2.5
- libsfml-system2.5
- libnotify4
- libsm6
- libopenal1
- libpng16-16
- libpulse0
- zlib1g
- libgtk-3-0
- libgl1
- libglvnd0
- libglx0
- libopengl0
- libwxgtk3.0-gtk3-0v5
build-packages:
- g++
- gcc
- gettext
- make
- cmake
- nasm
- pkg-config
- git
- zip
- libnotify-dev
- libsdl2-dev
- libsfml-dev
- libgtk-3-dev
- libopenal-dev
- libwxgtk3.0-gtk3-dev
cmake-parameters:
- -DENABLE_SDL=OFF
- -DCMAKE_INSTALL_PREFIX=/usr
apps:
visualboyadvance-m:
plugs:
- desktop
- desktop-legacy
- audio-playback
- opengl
- joystick
- raw-usb
- screen-inhibit-control
- home
- removable-media
- network
- wayland
- x11
command: usr/bin/visualboyadvance-m
desktop: usr/share/applications/visualboyadvance-m.desktop
extensions: [gnome]
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio