view snap/snapcraft.yaml @ 583:455f65ac777a

pulseaudio plug replaced by audio-playback
author Stefano Rivera <stefano@rivera.za.net>
date Fri, 18 Oct 2019 15:35:47 -0700
parents 8c037e4002c6
children 636e28b2e43a
line wrap: on
line source

name: mutable-mamba
base: core18
version: 0.1+hg583  # TODO: Automate
summary: Mutable Mamba is a snake game with a difference
description: |
 A game about a mutable mamba in the spirit of the classic snakes games.
 Mutable Mamba 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:
      - mutable-mamba.desktop

apps:
  mutable-mamba:
    command: bin/mamba
    desktop: mutable-mamba.desktop
    environment:
      LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio"
    plugs:
      - audio-playback
      - x11