changeset 695:793c4bc29bb4

A snap
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 10 Sep 2019 20:16:37 -0300
parents c5be55acf470
children 5bba86df5860
files snap/local/werewolf-sonata.desktop snap/snapcraft.yaml
diffstat 2 files changed, 50 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/snap/local/werewolf-sonata.desktop	Tue Sep 10 20:16:37 2019 -0300
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Werewolf Sonata
+Comment=Adventure puzzle game
+Icon=${SNAP}/lib/python2.7/site-packages/data/icons/werewolf-sonata_128.png
+Exec=werewolf-sonata
+Terminal=false
+Type=Application
+Categories=Game;AdventureGame;
+Keywords=adventure;game;puzzle;pyweek;space;alien;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/snap/snapcraft.yaml	Tue Sep 10 20:16:37 2019 -0300
@@ -0,0 +1,41 @@
+name: werewolf-sonata
+base: core18
+version: 0.1+hg694  # TODO: Automate
+summary: "Werewolf Sonata: Adventure Puzzler Game"
+description: |
+ Being a werewolf has many advantages, but it isn't great for paying the bills.
+ Insurance claims assesors willing to go the extra mile (to Saturn's moons, for
+ example) are, however, paid exceedingly well.
+ Money, and plentiful moonlight. What more could one ask for?
+ Werewolf Sonata was a PyWeek.org entry, a game written in a week.
+license: MIT
+
+grade: stable
+confinement: strict
+
+parts:
+  game:
+    plugin: python
+    python-version: python2
+    source: .
+    stage-packages:
+      - libslang2
+      - python-numpy
+      - python-pygame
+
+  launcher:
+    plugin: dump
+    source-type: local
+    source: snap/local
+    stage:
+      - werewolf-sonata.desktop
+
+apps:
+  werewolf-sonata:
+    command: bin/nagslang
+    desktop: werewolf-sonata.desktop
+    environment:
+      LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio"
+    plugs:
+      - pulseaudio
+      - x11