From 025724ab1b86346154d5f60335ae4cd2bb9860ef Mon Sep 17 00:00:00 2001 From: Kimpe Andy Date: Fri, 2 Feb 2024 01:42:11 +0100 Subject: [PATCH] Update snapcraft.yaml --- snapcraft.yaml | 70 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 19 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index f3aaf7ee5..a8b333e2c 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,5 +1,5 @@ name: desmume-emulator -version: 0.9.11 +version: 0.9.13 summary: DeSmuME is a Nintendo DS Emulator description: | An open-source Nintendo DS Emulators. @@ -7,25 +7,16 @@ adopt-info: desmume-emulator grade: stable confinement: strict base: core22 -compression: lzo -architectures: - - build-on: amd64 +#compression: lzo parts: desmume-emulator: - source: http://fr.archive.ubuntu.com/ubuntu/pool/universe/d/desmume/desmume_0.9.11-3build2_amd64.deb - plugin: dump - source-type: deb + source: https://github.com/TASEmulators/desmume/archive/refs/tags/release_0_9_13.tar.gz + plugin: nil override-build: | - echo "CRAFT_PROJECT_DIR=$CRAFT_PROJECT_DIR" - STABLE_TAG_CONFIG="$CRAFT_PROJECT_DIR/.stable_tag" - TAG_REF=$(cat "${STABLE_TAG_CONFIG}") - echo "TAG_REF=$TAG_REF" - snapcraftctl set version="$TAG_REF" - snapcraftctl build - # snapcraftctl pull - # last_commit="$(git describe | sed 's/^v//; s/-.*-/-/')" - # snapcraftctl set-version "${last_commit}" - # #sed -i.bak -e 's|Icon=desmume|Icon=/usr/share/icons/hicolor/scalable/apps/desmume.svg|g' src/wx/desmume.desktop + LDFLAGS="" CFLAGS="" FFLAGS="" FCFLAGS="" DEB_CFLAGS_SET="" DEB_CXXFLAGS_SET="" 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="" FFLAGS="" FCFLAGS="" DEB_CFLAGS_SET="" DEB_CXXFLAGS_SET="" DEB_FFLAGS_SET="" DEB_FCFLAGS_SET="" DEB_LDFLAGS_SET="" ninja -C desmume/src/frontend/posix/build + LDFLAGS="" CFLAGS="" FFLAGS="" FCFLAGS="" DEB_CFLAGS_SET="" DEB_CXXFLAGS_SET="" DEB_FFLAGS_SET="" DEB_FCFLAGS_SET="" DEB_LDFLAGS_SET="" ninja install -C desmume/src/frontend/posix/build + stage-packages: - libasound2 - libc6 @@ -46,6 +37,32 @@ parts: - libstdc++6 - libtinyxml2.6.2v5 - zlib1g + - g++ + - gcc + - gettext + - make + - cmake + - nasm + - pkg-config + - git + - zip + - build-essential + - intltool + - libglade2-dev + - libgtk2.0-dev + - libsdl1.2-dev + - libosmesa6-dev + - libagg-dev + - intltool + - quilt + - libgtkglext1-dev + - libtinyxml-dev + - libsoundtouch-dev + - dh-autoreconf + - meson + - libsdl2-dev + - libpcap-dev + - libgtk-3-dev build-packages: - g++ - gcc @@ -58,6 +75,21 @@ parts: - zip - build-essential - intltool + - libglade2-dev + - libgtk2.0-dev + - libsdl1.2-dev + - libosmesa6-dev + - libagg-dev + - intltool + - quilt + - libgtkglext1-dev + - libtinyxml-dev + - libsoundtouch-dev + - dh-autoreconf + - meson + - libsdl2-dev + - libpcap-dev + - libgtk-3-dev apps: desmume-emulator: @@ -74,8 +106,8 @@ apps: - network - wayland - x11 - command: usr/games/desmume - desktop: usr/share/applications/desmume.desktop + 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