[lightsoff] Add snap packaging
- From: Ken VanDine <kvandine src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff] Add snap packaging
- Date: Fri, 1 Dec 2017 02:31:21 +0000 (UTC)
commit 8dd83245644dedef2c071c0e86aa15a2138c384e
Author: Ken VanDine <kvandine gnome org>
Date: Wed Nov 15 14:58:02 2017 -0500
Add snap packaging
https://bugzilla.gnome.org/show_bug.cgi?id=790408
snap/snapcraft.yaml | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 0000000..08d4034
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,69 @@
+name: lightsoff
+version: git
+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: devel # must be 'stable' to release into candidate/stable channels
+confinement: strict
+
+plugs:
+ gnome-3-26-1604:
+ interface: content
+ target: $SNAP/gnome-platform
+ default-provider: gnome-3-26-1604:gnome-3-26-1604
+
+slots:
+ # for GtkApplication registration
+ lightsoff:
+ interface: dbus
+ bus: session
+ name: org.gnome.lightsoff
+
+apps:
+ lightsoff:
+ command: desktop-launch lightsoff
+ plugs:
+ - desktop
+ - desktop-legacy
+ - gsettings
+ - pulseaudio
+ - opengl
+ - unity7
+ - wayland
+ desktop: usr/share/applications/lightsoff.desktop
+ environment:
+ PATH: $SNAP/usr/games:$PATH
+
+parts:
+ lightsoff:
+ build-attributes: [no-system-libraries]
+ after: [desktop-gnome-platform]
+ source: .
+ source-type: git
+ prepare:
+ sed -i.bak -e 's|Icon=lightsoff$|Icon=${SNAP}/meta/gui/lightsoff.svg|g' data/lightsoff.desktop.in
+ install: |
+ mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
+ cp ../src/data/icons/hicolor/scalable/lightsoff.svg $SNAPCRAFT_PART_INSTALL/meta/gui/
+ cp data/lightsoff.desktop $SNAPCRAFT_PART_INSTALL/meta/gui/
+ plugin: autotools
+ configflags: [--prefix=/snap/lightsoff/current/usr, --bindir=/snap/lightsoff/current/usr/games]
+ organize:
+ snap/lightsoff/current/usr: usr
+ build-packages:
+ - appstream-util
+ - gnome-pkg-tools
+ - intltool
+ - libclutter-1.0-dev
+ - libclutter-gtk-1.0-dev
+ - libglib2.0-dev
+ - libgtk-3-dev
+ - librsvg2-dev
+ - valac
+ - yelp-tools
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]