name: visualboyadvance-m summary: Nintendo Game Boy Advance Emulator description: | An open-source Nintendo Game Boy, Super Game Boy, Game Boy Advance Emulators. adopt-info: vbam grade: devel confinement: strict base: core18 plugs: desktop: desktop-legacy: audio-playback: opengl: home: removable-media: network: wayland: x11: parts: wxwidgets-sdk: plugin: nil stage-snaps: - wxwidgets-sdk-gtk3 stage-packages: # Crash dialog support - binutils filesets: crash-dialog-support: - usr/bin/*addr2line library-shared: - '**/lib/**/*.so*' prime: - $crash-dialog-support - $library-shared vbam: after: - wxwidgets-sdk build-environment: - CFLAGS: -I$SNAPCRAFT_STAGE/lib/wx/include/gtk3-unicode-3.0 - CXXFLAGS: -I$SNAPCRAFT_STAGE/lib/wx/include/gtk3-unicode-3.0 source: https://github.com/visualboyadvance-m/visualboyadvance-m.git override-pull: | snapcraftctl pull last_commit="$(git describe | sed 's/^v//; s/-.*-/-/')" snapcraftctl set-version "${last_commit}" sed -i.bak -e 's|Icon=visualboyadvance-m|Icon=/usr/share/icons/hicolor/scalable/apps/visualboyadvance-m.svg|g' src/wx/visualboyadvance-m.desktop plugin: cmake stage-packages: - libsdl2-2.0-0 - libsfml-network2.4 - libsfml-system2.4 - libnotify4 - libsm6 - libopenal1 - libpng16-16 - libpulse0 - zlib1g - libgtk-3-0 - libgl1 - libglvnd0 - libglx0 - libopengl0 build-packages: - g++ - gcc - make - cmake - nasm - pkg-config - git - zip - libnotify-dev - libsdl2-dev - libsfml-dev - libgtk-3-dev - libopenal-dev configflags: - -DENABLE_OPENAL=ON - -DENABLE_SDL=OFF - -DCMAKE_INSTALL_PREFIX=/usr apps: visualboyadvance-m: command: usr/bin/visualboyadvance-m desktop: usr/share/applications/visualboyadvance-m.desktop extensions: [gnome-3-28] environment: LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio