Update snapcraft.yaml

This commit is contained in:
Kimpe Andy 2024-02-02 01:42:11 +01:00 committed by GitHub
parent 0ffcf1f7ac
commit 025724ab1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 51 additions and 19 deletions

View File

@ -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