From a2856421165aa94aeaa2000c07e2d773af1a7c25 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 16 Feb 2025 10:36:39 -0800 Subject: [PATCH] Add: NeoHtop (#3368) (#3391) * Add: NeoHtop * Add Categories Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --------- Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> (cherry picked from commit 0cb020e12adcc8fa8a6f4cd8056a4151b4eba1df) Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/apps/neohtop/NeoHtop.desktop | 8 +++++ anda/apps/neohtop/anda.hcl | 5 +++ anda/apps/neohtop/neohtop.spec | 51 +++++++++++++++++++++++++++++++ anda/apps/neohtop/update.rhai | 1 + 4 files changed, 65 insertions(+) create mode 100644 anda/apps/neohtop/NeoHtop.desktop create mode 100644 anda/apps/neohtop/anda.hcl create mode 100644 anda/apps/neohtop/neohtop.spec create mode 100644 anda/apps/neohtop/update.rhai diff --git a/anda/apps/neohtop/NeoHtop.desktop b/anda/apps/neohtop/NeoHtop.desktop new file mode 100644 index 0000000000..df2e74d07d --- /dev/null +++ b/anda/apps/neohtop/NeoHtop.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Categories=Utility; +Comment=A cross-platform system monitor +Exec=NeoHtop +Icon=NeoHtop +Name=NeoHtop +Terminal=false +Type=Application diff --git a/anda/apps/neohtop/anda.hcl b/anda/apps/neohtop/anda.hcl new file mode 100644 index 0000000000..482af47475 --- /dev/null +++ b/anda/apps/neohtop/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "neohtop.spec" + } +} diff --git a/anda/apps/neohtop/neohtop.spec b/anda/apps/neohtop/neohtop.spec new file mode 100644 index 0000000000..8000151906 --- /dev/null +++ b/anda/apps/neohtop/neohtop.spec @@ -0,0 +1,51 @@ +%global __brp_mangle_shebangs %{nil} + +Name: neohtop +Version: 1.1.2 +Release: 1%?dist +Summary: System monitoring on steroids +License: MIT +URL: https://github.com/Abdenasser/neohtop +Source0: %url/archive/refs/tags/v%version.tar.gz +Source1: NeoHtop.desktop +Packager: Owen Zimmerman +BuildRequires: rust +BuildRequires: nodejs-npm +BuildRequires: webkit2gtk4.1-devel +BuildRequires: javascriptcoregtk4.1-devel +BuildRequires: libsoup3-devel +BuildRequires: gtk3-devel +BuildRequires: rust-gdk-pixbuf-sys-devel +BuildRequires: glib2-devel +BuildRequires: openssl-devel + +%description +%summary. + +%prep +%autosetup -n neohtop-%version + +%build +npm install +npm run tauri build + +%install +install -Dpm755 src-tauri/target/release/NeoHtop %buildroot%_bindir/NeoHtop +install -Dpm644 %{SOURCE1} %buildroot%{_datadir}/applications/NeoHtop.desktop +# don't mind the numbers not matching, this is how the offical rpm installs these files +install -Dpm644 src-tauri/icons/128x128@2x.png %buildroot%{_iconsdir}/hicolor/256x256@2/apps/NeoHtop.png +install -Dpm644 src-tauri/icons/32x32.png %buildroot%{_iconsdir}/hicolor/32x32/apps/NeoHtop.png +install -Dpm644 src-tauri/icons/128x128.png %buildroot%{_iconsdir}/hicolor/128x128/apps/NeoHtop.png + +%files +%doc README.md +%license LICENSE +%_bindir/NeoHtop +%{_datadir}/applications/NeoHtop.desktop +%{_iconsdir}/hicolor/256x256@2/apps/NeoHtop.png +%{_iconsdir}/hicolor/32x32/apps/NeoHtop.png +%{_iconsdir}/hicolor/128x128/apps/NeoHtop.png + +%changelog +* Sat Feb 15 2025 Owen Zimmerman +- Initial package diff --git a/anda/apps/neohtop/update.rhai b/anda/apps/neohtop/update.rhai new file mode 100644 index 0000000000..cff04da793 --- /dev/null +++ b/anda/apps/neohtop/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("Abdenasser/neohtop"));