-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
68 lines (64 loc) · 1.66 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
name: lss
version: 0.1.1-2
summary: Long Story Short
description: Yet another unfinished roguelike game.
grade: devel
confinement: devmode
parts:
conan:
plugin: python
python-version: python3
python-packages:
- conan
lss:
plugin: nil
source-type: git
source: https://github.com/averrin/lss.git
after: [conan, desktop-gtk3]
build-packages:
- make
- libsdl1.2-dev
- libsdl-net1.2-dev
- libsdl-sound1.2-dev
- libasound2-dev
- software-properties-common
- wget
- apt-utils
override-build: |
# sudo add-apt-repository ppa:jonathonf/gcc-7.1
# sudo apt-get update
# sudo apt-get install -y gcc-7 g++-7
# export CXX=/usr/bin/g++-7
# export CC=/usr/bin/gcc-7
# wget https://cmake.org/files/v3.12/cmake-3.12.1-Linux-x86_64.sh
# chmod +x cmake-3.12.1-Linux-x86_64.sh
# sudo ./cmake-3.12.1-Linux-x86_64.sh --skip-license --prefix=/usr
# ls /usr/bin
# export PATH=$PATH:/usr/bin
# conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
conan install -s compiler.version=7.3 --build=missing .
cmake .
make -j4
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv bin/* $SNAPCRAFT_PART_INSTALL/bin
filesets:
wanted:
- bin/*
prime:
- $wanted
packages:
plugin: nil
after: [lss]
stage-packages:
- libstdc++6
- libsdl2-2.0-0
- libsdl2-gfx-1.0-0
- libdrm2
- libegl1-mesa
- libglu1-mesa
- libgles2-mesa
- libgl1-mesa-dri
apps:
lss:
plugs: [opengl, desktop, desktop-legacy]
command: desktop-launch $SNAP/bin/LSS