Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapcraft package #765 #767

Open
wants to merge 90 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
4bd572f
Create snapcraft.yaml
andykimpe Jan 31, 2024
ad324b1
Update snapcraft.yaml
andykimpe Jan 31, 2024
a06bd78
Update snapcraft.yaml
andykimpe Jan 31, 2024
63601cc
Update README.md
andykimpe Jan 31, 2024
ff1354f
Update snapcraft.yaml
andykimpe Jan 31, 2024
31a103d
Update snapcraft.yaml
andykimpe Jan 31, 2024
9e3af53
Update snapcraft.yaml
andykimpe Jan 31, 2024
2cb9f63
Create .stable_tag
andykimpe Jan 31, 2024
6bbe053
Update snapcraft.yaml
andykimpe Jan 31, 2024
b7a0012
Create NEWS
andykimpe Jan 31, 2024
699af62
Create changelog
andykimpe Jan 31, 2024
4934024
Create README.Debian
andykimpe Jan 31, 2024
5942fad
Create README.source
andykimpe Jan 31, 2024
1f81f80
Create build.sh
andykimpe Jan 31, 2024
749a94d
Update build.sh
andykimpe Jan 31, 2024
f85f8b7
Create compat
andykimpe Jan 31, 2024
3a32e7f
Create configure.sh
andykimpe Jan 31, 2024
e2a862f
Create control
andykimpe Jan 31, 2024
7c53d15
Create copyright
andykimpe Jan 31, 2024
2695ce4
Create install.sh
andykimpe Jan 31, 2024
8356908
Create rules
andykimpe Jan 31, 2024
55659f4
Create format
andykimpe Jan 31, 2024
7046aeb
Create watch
andykimpe Jan 31, 2024
8889e61
Update configure.sh
andykimpe Jan 31, 2024
ea3108a
Update rules
andykimpe Jan 31, 2024
e78135e
Update rules
andykimpe Jan 31, 2024
3ab7355
Update install.sh
andykimpe Jan 31, 2024
341f45e
Update .stable_tag
andykimpe Jan 31, 2024
ac07677
Update control
andykimpe Feb 1, 2024
595aad4
Update rules
andykimpe Feb 1, 2024
4364595
Delete debian/build.sh
andykimpe Feb 1, 2024
32f921f
Delete debian/configure.sh
andykimpe Feb 1, 2024
b9738bd
Delete debian/install.sh
andykimpe Feb 1, 2024
05ed457
Create 6508c2b115f954afece4243e36e9e35e1d459ea8.patch
andykimpe Feb 1, 2024
b33d25d
Create desmume-0.9.13-aarch64.patch
andykimpe Feb 1, 2024
1f13d52
Create desmume-0.9.13-arm.patch
andykimpe Feb 1, 2024
d187425
Create desmume-0.9.13-formatstring.patch
andykimpe Feb 1, 2024
03d1326
Create desmume-0.9.13-ppc64le.patch
andykimpe Feb 1, 2024
7602862
Create desmume-0.9.13-tinyxml.patch
andykimpe Feb 1, 2024
64dcb0f
Create series
andykimpe Feb 1, 2024
4d6e92d
Update compat
andykimpe Feb 1, 2024
9926814
Update rules
andykimpe Feb 1, 2024
426c742
Update changelog
andykimpe Feb 1, 2024
6603196
Delete debian/changelog
andykimpe Feb 2, 2024
8b3e9e4
Delete debian/patches/6508c2b115f954afece4243e36e9e35e1d459ea8.patch
andykimpe Feb 2, 2024
a280093
Delete debian/patches/desmume-0.9.13-aarch64.patch
andykimpe Feb 2, 2024
137ea7f
Delete debian/patches/desmume-0.9.13-arm.patch
andykimpe Feb 2, 2024
7302ec3
Delete debian/patches/desmume-0.9.13-formatstring.patch
andykimpe Feb 2, 2024
89ceda1
Delete debian/patches/desmume-0.9.13-ppc64le.patch
andykimpe Feb 2, 2024
4470165
Delete debian/patches/desmume-0.9.13-tinyxml.patch
andykimpe Feb 2, 2024
c7f7d03
Delete debian/patches/series
andykimpe Feb 2, 2024
849db65
Delete debian/source/format
andykimpe Feb 2, 2024
2d4f5b1
Delete debian/NEWS
andykimpe Feb 2, 2024
fa23355
Delete debian/README.Debian
andykimpe Feb 2, 2024
2d307de
Delete debian/README.source
andykimpe Feb 2, 2024
20c10ba
Delete debian/compat
andykimpe Feb 2, 2024
5940d78
Delete debian/control
andykimpe Feb 2, 2024
6e484fb
Delete debian/copyright
andykimpe Feb 2, 2024
d6eec04
Delete debian/rules
andykimpe Feb 2, 2024
0ffcf1f
Delete debian/watch
andykimpe Feb 2, 2024
025724a
Update snapcraft.yaml
andykimpe Feb 2, 2024
efa66c6
Update snapcraft.yaml
andykimpe Feb 2, 2024
d00429f
Rename .stable_tag to snap/.stable_tag
andykimpe Feb 2, 2024
a1d8287
Create desmume-0.9.13-aarch64.patch
andykimpe Feb 2, 2024
55f2c22
Create desmume-0.9.13-arm.patch
andykimpe Feb 2, 2024
2f0134a
Create desmume-0.9.13-formatstring.patch
andykimpe Feb 2, 2024
aca839d
Create desmume-0.9.13-ppc64le.patch
andykimpe Feb 2, 2024
6501ca7
Create desmume-0.9.13-tinyxml.patch
andykimpe Feb 2, 2024
07b9fe0
Update and rename snapcraft.yaml to snap/snapcraft.yaml
andykimpe Feb 2, 2024
8f3e0d1
Rename snap/patches/desmume-0.9.13-aarch64.patch to patches/desmume-0…
andykimpe Feb 2, 2024
09a983c
Rename snap/patches/desmume-0.9.13-arm.patch to patches/desmume-0.9.1…
andykimpe Feb 2, 2024
04af1e8
Rename snap/patches/desmume-0.9.13-formatstring.patch to patches/desm…
andykimpe Feb 2, 2024
9d4b521
Rename snap/patches/desmume-0.9.13-ppc64le.patch to patches/desmume-0…
andykimpe Feb 2, 2024
a67e49c
Rename snap/patches/desmume-0.9.13-tinyxml.patch to patches/desmume-0…
andykimpe Feb 2, 2024
084fe3e
Rename snap/.stable_tag to .stable_tag
andykimpe Feb 2, 2024
a27df7d
Rename snap/snapcraft.yaml to snapcraft.yaml
andykimpe Feb 2, 2024
b584447
Update snapcraft.yaml
andykimpe Feb 2, 2024
6802271
Update README.md
andykimpe Feb 2, 2024
c74fbf3
Update README.md
andykimpe Feb 2, 2024
eeb7375
Update snapcraft.yaml
andykimpe Feb 2, 2024
6e8f1f5
Update snapcraft.yaml
andykimpe Feb 2, 2024
e1212ff
Update snapcraft.yaml
andykimpe Feb 2, 2024
64ccbf1
Update snapcraft.yaml
andykimpe Feb 2, 2024
5d9e6ee
Delete patches/desmume-0.9.13-aarch64.patch
andykimpe Feb 9, 2024
43e6974
Delete patches/desmume-0.9.13-arm.patch
andykimpe Feb 9, 2024
bd7387b
Delete patches/desmume-0.9.13-formatstring.patch
andykimpe Feb 9, 2024
adbc624
Delete patches/desmume-0.9.13-ppc64le.patch
andykimpe Feb 9, 2024
a42d9ee
Delete patches/desmume-0.9.13-tinyxml.patch
andykimpe Feb 9, 2024
6cb5d40
Update snapcraft.yaml
andykimpe Feb 9, 2024
a0e50b3
Update snapcraft.yaml
andykimpe Feb 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .stable_tag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.9.11
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
81 changes: 81 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: desmume-emulator
version: 0.9.11
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current release is 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
architectures:
- build-on: amd64
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
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
stage-packages:
- libasound2
- libc6
- libcairo2
- libgcc-s1
- libgcc-s1
- libgdk-pixbuf-2.0-0
- libgl1
- libglade2-0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glade isnt needed, if you dont build the glade frontend (which is defunct anyway)

Copy link
Author

@andykimpe andykimpe Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the dependency packages I first used what was in the 0.9.11 package then added but I did not remove what was no longer useful

- libglib2.0-0
- libglu1-mesa
- libgtk2.0-0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you dont need to install gtk2-related packages if you use the meson recipe, it builds only gtk+3 support

- libgtkglext1
- libosmesa6
- libpango-1.0-0
- libsdl1.2debian
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why sdl 1.2 ? we use sdl2.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i replace by libsdl2-dev

https://packages.ubuntu.com/jammy/libsdl2-dev

- libsoundtouch1
- libstdc++6
- libtinyxml2.6.2v5
- zlib1g
build-packages:
- g++
- gcc
- gettext
- make
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to me that one of build-packages vs stage-packages are packages needed for the build vs packages that need to be shipped together with the app.
you only need cmake, make, nasm, gcc, etc in the former category, not in both.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exact and I also need to see how to replace the dev with their standard package

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- cmake
- nasm
- pkg-config
- git
- zip
- build-essential
- intltool

apps:
desmume-emulator:
plugs:
- desktop
- desktop-legacy
- audio-playback
- opengl
- joystick
- raw-usb
- screen-inhibit-control
- home
- removable-media
- network
- wayland
- x11
command: usr/games/desmume
desktop: usr/share/applications/desmume.desktop
extensions: [gnome]
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio