If someone has a idea, please… Note: this game’s website is there.
name: gianas-return
base: core18
version: '1.10'
summary: Giana’s Return
description: |
Giana’s Return aims to be a worthy UNOFFICIAL sequel of “The Great Giana Sisters”. There
is an official sequel for Nintendo DS named “Giana Sisters DS” and also has slightly more
levels than Giana’s Return. In other words, it’s worth the money :)
grade: devel # 'devel' -> 'stable' to release into candidate/stable channels
confinement: devmode
# core22:
#architectures:
# - build-on: amd64
# build-for: amd64
environment:
SHELL: bash
LC_ALL: C.UTF-8
# LD_LIBRARY_PATH: $SNAP/graphics/lib
LIBGL_DRIVERS_PATH: $SNAP/graphics/dri
ALWAYS_USE_PULSEAUDIO: '1'
# pulseaudio
# NOK LD_LIBRARY_PATH: ${SNAP}/usr/lib/x86_64-linux-gnu/pulseaudio
# LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio:$SNAP"
# LD_LIBRARY_PATH: "$SNAP/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}"
# ALSA_CONFIG_PATH: ${SNAP}/etc/asound.conf
# Fix for:
# Unable to determine library dependencies for 'usr/lib/x86_64-linux-gnu/ao/plugins-4/libpulse.so'
layout:
# /usr/lib/$CRAFT_ARCH_TRIPLET/pulseaudio/libpulse.so:
# symlink: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/ao/plugins-4/libpulse.so
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib:
bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
/usr/share/alsa:
bind: $SNAP/usr/share/alsa
#layout:
# usr/lib/x86_64-linux-gnu/ao/plugins-4/libpulse.so:
# bind: /usr/lib/x86_64-linux-gnu/pulseaudio
#
# /usr/lib/x86_64-linux-gnu/pulseaudio:
# bind: usr/lib/x86_64-linux-gnu/ao/plugins-4/libpulse.so
# /usr/share/libdrm:
# bind: $SNAP/wine-runtime/usr/share/libdrm
parts:
gianas-return:
plugin: dump
source: https://www.retroguru.com/gianas-return/gianas-return-v.latest-linux.tar.gz
stage-packages:
# - libsdl1.2-compat # core22
- libsdl1.2debian # core18
- libsdl-mixer1.2
- libsdl-image1.2-dev
- modplug-tools
- libgl1
- freeglut3
- libglu1-mesa
- libpulse0
- libzstd1
- libslang2
- libgtk-3-common
- libgtk-3-bin
- libaudio2
alsa-mixin:
plugin: dump
source: https://github.com/diddlesnaps/snapcraft-alsa.git
source-subdir: snapcraft-assets
build-packages:
- libasound2-dev
stage-packages:
- libasound2
- libasound2-plugins
- yad
stage:
# restrict to only audio-related files - you need to ensure
# that gtk3 is staged for yad to work correctly, to prompt
# users to connect the alsa plug or proceed with pulseaudio.
#
# This helps prevent symbol conflicts in situations where
# you're using a non-default library, such as those that the
# gnome-3-34 extension for core18 provides.
- etc/asound.conf
- snap/command-chain/alsa-launch
- usr/bin/yad*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libasound*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libdnsfile*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libFLAC*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjack*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libpulse*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libsamplerate*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libspeex*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvorbis*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
apps:
gianas-return:
extensions:
- gnome-3-34 # core18
# - gnome # core22
environment:
# NOK LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio"
LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio:$SNAP"
command-chain: ["snap/command-chain/alsa-launch"]
command: giana_linux64
plugs:
- home
- opengl
- joystick
# - pulseaudio
- alsa
- audio-playback
- desktop
- desktop-legacy
- wayland
- x11