view snap/snapcraft.yaml @ 695:793c4bc29bb4

A snap
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 10 Sep 2019 20:16:37 -0300
parents
children 5bba86df5860
line wrap: on
line source

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