name: xmdp
base: core18
version: git
license: Unlicense
summary: An MDP clone using libxmp
description: |
  xmdp is a clone of the Future Crew MusicDiskPlayer (released in 1993 with
  the Journey 1/2 and Chaotic Mind musicdisks) using libxmp to render module
  data.

grade: devel
confinement: strict

apps:
  xmdp:
    command: xmdp
    plugs:
      - home
      - alsa
      - pulseaudio
      - x11
      - wayland
      - opengl
    environment:
      LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/pulseaudio

parts:
  xmdp:
    source: .
    plugin: make
    artifacts: [xmdp]
    build-packages:
      - gcc
      - make
      - libsdl2-dev
      - libxmp-dev
      - libpulse-dev
    stage-packages:
      - libsdl2-2.0-0
      - libxmp4
      - libpulse0
      - libgl1

name: xmdp
base: core18
version: git
license: Unlicense
summary: An MDP clone using libxmp
description: |
  xmdp is a clone of the Future Crew MusicDiskPlayer (released in 1993 with
  the Journey 1/2 and Chaotic Mind musicdisks) using libxmp to render module
  data.

grade: devel
confinement: strict

apps:
  xmdp:
    command: xmdp
    plugs:
      - home
      - alsa
      - pulseaudio
      - x11
      - wayland
      - opengl
    environment:
      LD_LIBRARY_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio

parts:
  xmdp:
    source: .
    plugin: make
    artifacts: [xmdp]
    build-packages:
      - gcc
      - make
      - libsdl2-dev
      - libxmp-dev
      - libpulse-dev
    stage-packages:
      - libsdl2-2.0-0
      - libxmp4
      - libpulse0
      - libgl1

Use arch triplet to set snap library path
Use arch triplet to set snap library path

Signed-off-by: Claudio Matsuoka <ef7f691d9947ca9adbfeb1538a53a661ec9f041b@gmail.com>
