From d947c0cbfc231f32b7941ca3ea9494c3ab269f80 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 23 Dec 2025 23:52:33 -0800 Subject: [PATCH] add: snow (#8562) (#8564) * add: snow * update.rhai * fix my awful formatting * fix my awful formatting again --------- (cherry picked from commit 96e515845480f222fe58e9254a43452ee1f4143b) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/apps/snow/anda.hcl | 5 ++ anda/apps/snow/com.github.snow.metainfo.xml | 36 ++++++++++ anda/apps/snow/snow.desktop | 7 ++ anda/apps/snow/snow.spec | 80 +++++++++++++++++++++ anda/apps/snow/update.rhai | 1 + 5 files changed, 129 insertions(+) create mode 100644 anda/apps/snow/anda.hcl create mode 100644 anda/apps/snow/com.github.snow.metainfo.xml create mode 100644 anda/apps/snow/snow.desktop create mode 100644 anda/apps/snow/snow.spec create mode 100644 anda/apps/snow/update.rhai diff --git a/anda/apps/snow/anda.hcl b/anda/apps/snow/anda.hcl new file mode 100644 index 0000000000..a725adc65d --- /dev/null +++ b/anda/apps/snow/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "snow.spec" + } +} diff --git a/anda/apps/snow/com.github.snow.metainfo.xml b/anda/apps/snow/com.github.snow.metainfo.xml new file mode 100644 index 0000000000..a6f6bf8006 --- /dev/null +++ b/anda/apps/snow/com.github.snow.metainfo.xml @@ -0,0 +1,36 @@ + + + com.github.snow + CC0-1.0 + MIT + /usr/share/icons/hicolor/1024x1024/apps/snow_icon.png + + snow + Classic Macintosh emulator + + +

+ Snow emulates classic (Motorola 68k-based) Macintosh computers. + It features a graphical user interface to operate and debug the emulated machine. + The aim of this project is to emulate the Macintosh on a hardware-level as much as possible, + as opposed to emulators that patch the ROM or intercept system calls. +

+
+ + snow.desktop + + https://github.com/twvd/snow + + snow + + + + macintosh + + + + + +
diff --git a/anda/apps/snow/snow.desktop b/anda/apps/snow/snow.desktop new file mode 100644 index 0000000000..19d9a16582 --- /dev/null +++ b/anda/apps/snow/snow.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Categories=System;Emulator; +Comment=Classic Macintosh emulator +Exec=snow +Icon=snow_icon +Name=snow +Type=Application diff --git a/anda/apps/snow/snow.spec b/anda/apps/snow/snow.spec new file mode 100644 index 0000000000..344d72e9cb --- /dev/null +++ b/anda/apps/snow/snow.spec @@ -0,0 +1,80 @@ +%global appid com.github.snow + +Name: snow +Version: 1.2.0 +Release: 1%?dist +Summary: Classic Macintosh emulator +URL: https://github.com/twvd/snow +Source0: %url/archive/refs/tags/v%version.tar.gz +Source1: snow.desktop +Source2: %appid.metainfo.xml +License: MIT + +BuildRequires: cargo +BuildRequires: gcc-c++ +BuildRequires: mold +BuildRequires: anda-srpm-macros +BuildRequires: cargo-rpm-macros +BuildRequires: desktop-file-utils +BuildRequires: terra-appstream-helper +BuildRequires: SDL2-devel + +Packager: Owen Zimmerman + +%description +Snow emulates classic (Motorola 68k-based) Macintosh computers. +It features a graphical user interface to operate and debug the emulated machine. +The aim of this project is to emulate the Macintosh on a hardware-level as much as possible, +as opposed to emulators that patch the ROM or intercept system calls. + +%package doc +Summary: Documentation files for %{name} + +%description doc +Documentation files for %{name} + +%prep +%autosetup -n %{name}-%{version} +%cargo_prep_online + +%build +%cargo_build + +%install +mkdir -p %{buildroot}%{_pkgdocdir} +install -Dm755 target/rpm/snow_frontend_egui %{buildroot}%{_bindir}/snow + +install -Dm644 docs/images/snow_icon.png %{buildroot}%{_hicolordir}/1024x1024/apps/snow_icon.png + +install -Dm644 %{SOURCE1} %{buildroot}%{_appsdir}/snow.desktop + +cp -a docs/* %{buildroot}%{_pkgdocdir}/ +rm %{buildroot}%{_pkgdocdir}/*.toml +rm %{buildroot}%{_pkgdocdir}/images/*.icns +rm %{buildroot}%{_pkgdocdir}/images/*.ico +rm -r %{buildroot}%{_pkgdocdir}/theme + +%terra_appstream -o %{SOURCE2} + +%cargo_license_summary_online +%{cargo_license_online} > LICENSE.dependencies + +%check +desktop-file-validate %{buildroot}%{_appsdir}/snow.desktop + +%files +%doc README.md +%license LICENSE +%license LICENSE.dependencies +%{_bindir}/snow +%{_hicolordir}/1024x1024/apps/snow_icon.png +%{_appsdir}/snow.desktop +%{_metainfodir}/%appid.metainfo.xml + +%files doc +%license LICENSE +%doc %{_pkgdocdir}/* + +%changelog +* Tue Dec 23 2025 Owen Zimmerman +- Initial commit diff --git a/anda/apps/snow/update.rhai b/anda/apps/snow/update.rhai new file mode 100644 index 0000000000..c8d574b7c8 --- /dev/null +++ b/anda/apps/snow/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("twvd/snow"));