/
snapcraft.yaml
92 lines (85 loc) · 2.27 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
name: xonotic
version: '0.8.6'
summary: The Free and Fast Arena Shooter
description: |
Xonotic is an addictive, arena-style first person shooter with crisp movement
and a wide array of weapons. It combines intuitive mechanics with in-your-face
action to elevate your heart rate. Xonotic is and will always be free-to-play.
base: core22
grade: stable
confinement: strict
compression: lzo
architectures:
- build-on: amd64
- build-on: arm64
layout:
/usr/share/libdrm:
bind: $SNAP/usr/share/libdrm
apps:
dedicated:
extensions: [gnome]
command: Xonotic/xonotic-dedicated -basedir /snap/xonotic/current/Xonotic
plugs:
- network
- network-bind
xonotic:
extensions: [gnome]
command: Xonotic/xonotic-sdl -basedir /snap/xonotic/current/Xonotic
environment:
SDL_AUDIODRIVER: pulse
plugs:
- audio-playback
- joystick
- network
- network-bind
- opengl
- optical-drive
- wayland
- x11
parts:
xonotic:
plugin: dump
source: https://dl.xonotic.org/xonotic-$SNAPCRAFT_PROJECT_VERSION-source.zip
override-build: |
(cd Xonotic && make both)
install -Dm755 Xonotic/source/darkplaces/darkplaces-dedicated "$SNAPCRAFT_PART_INSTALL"/Xonotic/xonotic-dedicated
install -Dm755 Xonotic/source/darkplaces/darkplaces-sdl "$SNAPCRAFT_PART_INSTALL"/Xonotic/xonotic-sdl
(cd Xonotic/source/d0_blind_id && make DESTIR="$SNAPCRAFT_PART_INSTALL" install)
build-packages:
- automake
- libtool
- libgmp-dev
- libjpeg-turbo8-dev
- libsdl2-dev
- libxpm-dev
- zlib1g-dev
stage-packages:
- libasound2
- libbsd0
- libgcc1
- libsdl2-2.0-0
- libx11-6
- libxau6
- libxcb1
- libxdmcp6
- libxext6
- libxxf86vm1
- zlib1g
xonotic-data:
plugin: dump
source: https://dl.xonotic.org/xonotic-$SNAPCRAFT_PROJECT_VERSION.zip
prime:
- -Xonotic/Xonotic.app/
- -Xonotic/*.exe
- -Xonotic/bin32
- -Xonotic/bin64
- -Xonotic/Docs
- -Xonotic/misc
- -Xonotic/server/rcon2irc
- -Xonotic/source
- -Xonotic/xonotic-linux*
- -Xonotic/xonotic-osx-dedicated
- -usr/share/bug
- -usr/share/doc
- -usr/share/lintian
- -usr/share/man