-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsnapcraft.yaml
102 lines (91 loc) · 3.36 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: voidstar
version: v1.39.0 # FIXME: 'git'
summary: void* casts files onto 2D/3D colored spaces for your mind blowing needs # 79 char long summary
description: |
Usage:
voidstar [OPTIONS] FILE...
-l, --list list backends
-u, --ui choose ui mode
-a, --algorithm algorithm to apply
-x, --width window width [default: 800]
-y, --height window height [default: 600]
-f, --fullscreen start on fullscreen
--keep-chrome show title bar & allow resizing
--exit-at-fin terminate when show's over
-w, --sliding length of sliding window
-s, --slide-step amount of points slid
-m, --move move sliding window forward
-n, --no-spin don't spin shape on itself
-b, --begin begin offset for the range
-e, --end end offset for the range (0: till end of file)
-h, --help this help
# Press H and L to switch between files
# Use A W S D Z X and your mouse to move in the 3D space
# Press F for full screen
# Use the arrows to slide and enlarge the sliding window
# Press M to slide the window to the end
# Use > to slide faster, < to slow down
# SPACE to toggle spinning the shape
# Press O to reset the camera position
# Use B to change background color
# ESC to quit
grade: stable
base: core20
confinement: strict
architectures:
- build-on: amd64
run-on: [amd64, i386]
- build-on: arm64
# - build-on: armhf # TODO: https://github.com/koenvervloesem/bazel-on-arm/releases
apps:
voidstar:
command: voidstar
environment:
# https://forum.snapcraft.io/t/opengl-error-mesa-loader-fails/15197/2
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/mesa:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/mesa-gl:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/xorg
LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri
MESA_GLSL_CACHE_DIR: $SNAP_USER_DATA
plugs:
- home # to read files in $HOME
- network # to read URLs
- opengl # to access rendering hardware
- optical-drive # to read CDs
- removable-media # to read USB keys
- wayland
- x11 # to create windows
parts:
voidstar:
plugin: make
source: .
build-packages:
- curl
- g++
- libgl1-mesa-dev
- make
- xorg-dev
stage-packages:
- libdri2-1
- libdrm2
- libgl1-mesa-dev
- libgl1-mesa-glx
- libgles2-mesa
- libglu1-mesa
- xorg-dev
after:
- desktop-glib-only # https://snapcraft.io/docs/gpu-support
# This part installs the glib dependencies and a `desktop-launch` script to initialise
# desktop-specific features such as OpenGL, fonts, themes and the XDG environment.
#
# It is copied from the snapcraft desktop helpers project and the `source` key is
# changed to point to https://github.com/ubuntu/snapcraft-desktop-helpers.git
# Please periodically check the desktop helpers repo for updates and copy the changes.
# https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/snapcraft.yaml
#
desktop-glib-only:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: glib-only
plugin: make
build-packages:
- libglib2.0-dev
stage-packages:
- libglib2.0-bin