view snap/snapcraft.yaml @ 696:5bba86df5860

pulseaudio plug replaced by audio-playback
author Stefano Rivera <stefano@rivera.za.net>
date Fri, 18 Oct 2019 15:41:37 -0700
parents 793c4bc29bb4
children
line wrap: on
line source

name: werewolf-sonata
base: core18
version: 0.1+hg696  # 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:
      - audio-playback
      - x11