diff --git a/.stable_tag b/.stable_tag new file mode 100644 index 000000000..62ea25909 --- /dev/null +++ b/.stable_tag @@ -0,0 +1 @@ +0.9.13 diff --git a/README.md b/README.md index 4d7432715..01c8253ec 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ # DeSmuME [![AppVeyor CI Build Status](https://ci.appveyor.com/api/projects/status/abfd7jm09wnmxyvu?svg=true)](https://ci.appveyor.com/project/zeromus/desmume) + + +[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/desmume-emulator) + + + DeSmuME is a Nintendo DS emulator. http://desmume.org/download diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 000000000..01872b5ac --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,111 @@ +name: desmume-emulator +version: 0.9.13 +summary: DeSmuME is a Nintendo DS Emulator +description: | + An open-source Nintendo DS Emulators. +adopt-info: desmume-emulator +grade: stable +confinement: strict +base: core22 +compression: lzo +parts: + desmume-emulator: + source: https://github.com/TASEmulators/desmume/archive/refs/tags/release_0_9_13.tar.gz + plugin: nil + override-build: | + wget https://github.com/rpmfusion/desmume/raw/f39/desmume-0.9.13-aarch64.patch -O ./desmume-0.9.13-aarch64.patch + patch -p1 < ./desmume-0.9.13-aarch64.patch + rm -f ./desmume-0.9.13-aarch64.patch + wget https://github.com/rpmfusion/desmume/raw/f39/desmume-0.9.13-arm.patch -O ./desmume-0.9.13-arm.patch + patch -p1 < ./desmume-0.9.13-arm.patch + rm -f ./desmume-0.9.13-arm.patch + wget https://github.com/rpmfusion/desmume/raw/f39/desmume-0.9.13-formatstring.patch -O ./desmume-0.9.13-formatstring.patch + patch -p1 < ./desmume-0.9.13-formatstring.patch + rm -f ./desmume-0.9.13-formatstring.patch + wget https://github.com/rpmfusion/desmume/raw/f39/desmume-0.9.13-ppc64le.patch -O ./desmume-0.9.13-ppc64le.patch + patch -p1 < ./desmume-0.9.13-ppc64le.patch + rm -f ./desmume-0.9.13-ppc64le.patch + wget https://github.com/rpmfusion/desmume/raw/f39/desmume-0.9.13-tinyxml.patch -O ./desmume-0.9.13-tinyxml.patch + patch -p1 < ./desmume-0.9.13-tinyxml.patch + rm -f ./desmume-0.9.13-tinyxml.patch + sed -i 's|Icon=org.desmume.DeSmuME|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/org.desmume.DeSmuME.svg|g' desmume/src/frontend/posix/gtk/org.desmume.DeSmuME.desktop + LDFLAGS="" CFLAGS="-O3" CXXFLAGS="-O3" FFLAGS="" FCFLAGS="" DEB_CFLAGS_SET="-O3" DEB_CXXFLAGS_SET="-O3" DEB_FFLAGS_SET="" DEB_FCFLAGS_SET="" DEB_LDFLAGS_SET="" meson setup --prefix=${CRAFT_PART_INSTALL}/usr desmume/src/frontend/posix/build desmume/src/frontend/posix + LDFLAGS="" CFLAGS="-O3" CXXFLAGS="-O3" FFLAGS="" FCFLAGS="" DEB_CFLAGS_SET="-O3" DEB_CXXFLAGS_SET="-O3" DEB_FFLAGS_SET="" DEB_FCFLAGS_SET="" DEB_LDFLAGS_SET="" ninja -C desmume/src/frontend/posix/build + LDFLAGS="" CFLAGS="-O3" CXXFLAGS="-O3" FFLAGS="" FCFLAGS="" DEB_CFLAGS_SET="-O3" DEB_CXXFLAGS_SET="-O3" DEB_FFLAGS_SET="" DEB_FCFLAGS_SET="" DEB_LDFLAGS_SET="" ninja install -C desmume/src/frontend/posix/build + stage-packages: + - libasound2 + - libc6 + - libcairo2 + - libgcc-s1 + - libgdk-pixbuf-2.0-0 + - libgl1 + - libglib2.0-0 + - libglu1-mesa + - libgtkglext1 + - libosmesa6 + - libpango-1.0-0 + - libsdl2-2.0-0 + - libsoundtouch1 + - libstdc++6 + - libtinyxml2.6.2v5 + - zlib1g + - gettext + - pkg-config + - git + - zip + - libosmesa6 + - libagg2 + - libgtkglext1 + - libsoundtouch1 + - libsdl2-2.0-0 + - libpcap0.8 + - libgtk-3-0 + - libgtk-3-bin + - libgtk-3-common + build-packages: + - g++ + - gcc + - gettext + - make + - cmake + - nasm + - pkg-config + - git + - zip + - build-essential + - intltool + - libosmesa6-dev + - libagg2-dev + - intltool + - quilt + - libgtkglext1-dev + - libtinyxml-dev + - libsoundtouch-dev + - dh-autoreconf + - meson + - libsdl2-dev + - libpcap-dev + - libgtk-3-dev + - patch + - wget + +apps: + desmume-emulator: + plugs: + - desktop + - desktop-legacy + - audio-playback + - opengl + - joystick + - raw-usb + - screen-inhibit-control + - home + - removable-media + - network + - wayland + - x11 + command: usr/bin/desmume + desktop: usr/share/applications/org.desmume.DeSmuME.desktop + extensions: [gnome] + environment: + LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio