forked from ubuntu/lightsoff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
58 lines (52 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
name: lightsoff
adopt-info: lightsoff
summary: Turn off all the lights
description: |
Lights Off is a collection of light switch puzzles. Clicking on a light
toggles it either on or off, but also toggles all the surrounding lights,
too. Your objective is simple: turn off all the lights!
Players who delight in turning off lights will enjoy the huge number of
levels.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core24
# Launchpad doesn't recognize these fields yet
passthrough:
license: GPL-2.0+
title: Lights Off
slots:
# for GtkApplication registration
lightsoff:
interface: dbus
bus: session
name: org.gnome.LightsOff
apps:
lightsoff:
command: usr/bin/lightsoff
extensions: [gnome]
plugs:
- gsettings
- opengl
desktop: usr/share/applications/org.gnome.LightsOff.desktop
environment:
GSETTINGS_SCHEMA_DIR: $SNAP/share/glib-2.0/schemas
parts:
lightsoff:
# ext:updatesnap
source: https://gitlab.gnome.org/GNOME/lightsoff.git
source-type: git
source-tag: '40.0.1'
source-depth: 1
parse-info: [usr/share/metainfo/org.gnome.LightsOff.appdata.xml]
override-build: |
sed -i.bak -e 's|Icon=org.gnome.LightsOff$|Icon=${SNAP}/meta/gui/org.gnome.LightsOff.svg|g' $CRAFT_PART_SRC/data/org.gnome.LightsOff.desktop.in
craftctl default
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp $CRAFT_PART_SRC/data/icons/hicolor/scalable/apps/org.gnome.LightsOff.svg $CRAFT_PART_INSTALL/meta/gui/
plugin: meson
meson-parameters:
- --prefix=/usr
build-packages:
- on amd64:
- gcc-multilib
- g++-multilib