From d6758ff2b8964087e0ac9ecd94b1bdc274f8a844 Mon Sep 17 00:00:00 2001 From: Owen-sz Date: Sat, 27 Jun 2026 19:44:21 -0500 Subject: [PATCH] add: melonDS-nightly Signed-off-by: Owen-sz --- anda/games/melonDS/nightly/anda.hcl | 8 ++++ .../melonDS/nightly/melonDS-nightly.spec | 44 +++++++++++++++++++ anda/games/melonDS/nightly/update.rhai | 7 +++ anda/games/melonDS/{ => stable}/anda.hcl | 0 anda/games/melonDS/{ => stable}/melonDS.spec | 10 ++++- anda/games/melonDS/{ => stable}/update.rhai | 0 6 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 anda/games/melonDS/nightly/anda.hcl create mode 100644 anda/games/melonDS/nightly/melonDS-nightly.spec create mode 100644 anda/games/melonDS/nightly/update.rhai rename anda/games/melonDS/{ => stable}/anda.hcl (100%) rename anda/games/melonDS/{ => stable}/melonDS.spec (79%) rename anda/games/melonDS/{ => stable}/update.rhai (100%) diff --git a/anda/games/melonDS/nightly/anda.hcl b/anda/games/melonDS/nightly/anda.hcl new file mode 100644 index 0000000000..611237a45a --- /dev/null +++ b/anda/games/melonDS/nightly/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "melonDS-nightly.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/games/melonDS/nightly/melonDS-nightly.spec b/anda/games/melonDS/nightly/melonDS-nightly.spec new file mode 100644 index 0000000000..3d8df8be3a --- /dev/null +++ b/anda/games/melonDS/nightly/melonDS-nightly.spec @@ -0,0 +1,44 @@ +%define debug_package %{nil} + +Name: melonds-nightly +Version: 1.1 +Release: 1%{?dist} +Summary: DS emulator, sorta +License: GPL-3.0-or-later +URL: https://melonds.kuribo64.net/ +Source0: https://github.com/melonDS-emu/melonDS/archive/refs/tags/%{version}.tar.gz +Packager: Owen Zimmerman +BuildRequires: cmake +BuildRequires: extra-cmake-modules +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: cmake(Qt6) +BuildRequires: qt6-qtmultimedia-devel +BuildRequires: qt6-qtsvg-devel +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(libarchive) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(faad2) +BuildRequires: pkgconfig(libenet) +BuildSystem: cmake + +Provides: melonDS-nightly + +%description +%{summary}. + +%files +%doc README.md +%license LICENSE +%{_bindir}/melonDS +%{_appsdir}/net.kuribo64.melonDS.desktop +%{_hicolordir}/128x128/apps/net.kuribo64.melonDS.png +%{_hicolordir}/16x16/apps/net.kuribo64.melonDS.png +%{_hicolordir}/256x256/apps/net.kuribo64.melonDS.png +%{_hicolordir}/32x32/apps/net.kuribo64.melonDS.png +%{_hicolordir}/48x48/apps/net.kuribo64.melonDS.png +%{_hicolordir}/64x64/apps/net.kuribo64.melonDS.png + +%changelog +* Sat Jun 27 2026 Owen Zimmerman +- Initial commit diff --git a/anda/games/melonDS/nightly/update.rhai b/anda/games/melonDS/nightly/update.rhai new file mode 100644 index 0000000000..051f5949cf --- /dev/null +++ b/anda/games/melonDS/nightly/update.rhai @@ -0,0 +1,7 @@ +rpm.global("ver", gh("melonDS-emu/melonDS")); + +rpm.global("commit", gh_commit("melonDS-emu/melonDS")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +} diff --git a/anda/games/melonDS/anda.hcl b/anda/games/melonDS/stable/anda.hcl similarity index 100% rename from anda/games/melonDS/anda.hcl rename to anda/games/melonDS/stable/anda.hcl diff --git a/anda/games/melonDS/melonDS.spec b/anda/games/melonDS/stable/melonDS.spec similarity index 79% rename from anda/games/melonDS/melonDS.spec rename to anda/games/melonDS/stable/melonDS.spec index 63b1b24a9c..2d2e5d2b38 100644 --- a/anda/games/melonDS/melonDS.spec +++ b/anda/games/melonDS/stable/melonDS.spec @@ -1,12 +1,18 @@ %define debug_package %{nil} +%global commit 10a173b5536fc75cd93f8a3868349dad963542ef +%global commit_date 20260607 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%global ver 1.1 + Name: melonds -Version: 1.1 +Version: %{ver}^%{commit_date}git.%{shortcommit} Release: 1%{?dist} Summary: DS emulator, sorta License: GPL-3.0-or-later URL: https://melonds.kuribo64.net/ -Source0: https://github.com/melonDS-emu/melonDS/archive/refs/tags/%{version}.tar.gz +Source0: https://github.com/melonDS-emu/melonDS/archive/%commit/melonDS-%commit.tar.gz Packager: Owen Zimmerman BuildRequires: cmake BuildRequires: extra-cmake-modules diff --git a/anda/games/melonDS/update.rhai b/anda/games/melonDS/stable/update.rhai similarity index 100% rename from anda/games/melonDS/update.rhai rename to anda/games/melonDS/stable/update.rhai