From 35af14be08744af08779d489bc23e3ff6e6d203c Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 26 Feb 2026 11:49:27 -0800 Subject: [PATCH] add: surge (#10098) (#10111) --- anda/tools/surge/anda.hcl | 5 +++++ anda/tools/surge/surge.spec | 41 ++++++++++++++++++++++++++++++++++++ anda/tools/surge/update.rhai | 1 + 3 files changed, 47 insertions(+) create mode 100644 anda/tools/surge/anda.hcl create mode 100644 anda/tools/surge/surge.spec create mode 100644 anda/tools/surge/update.rhai diff --git a/anda/tools/surge/anda.hcl b/anda/tools/surge/anda.hcl new file mode 100644 index 0000000000..be401dcc91 --- /dev/null +++ b/anda/tools/surge/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "surge.spec" + } +} diff --git a/anda/tools/surge/surge.spec b/anda/tools/surge/surge.spec new file mode 100644 index 0000000000..89d950d093 --- /dev/null +++ b/anda/tools/surge/surge.spec @@ -0,0 +1,41 @@ +%global goipath github.com/surge-downloader/surge +Version: 0.6.9 + +%gometa + +Name: surge +Release: 1%?dist +Summary: Blazing fast TUI download manager built in Go for power users + +License: MIT +URL: https://github.com/surge-downloader/Surge +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz + +Packager: Owen Zimmerman + +BuildRequires: golang gcc go-rpm-macros +Requires: glibc + +%description +%{summary}. + +%gopkg + +%prep +%autosetup -n Surge-%{version} + +%build +%define gomodulesmode GO111MODULE=on +%gobuild -o %{gobuilddir}/bin/surge %{goipath} + +%install +install -Dm755 %{gobuilddir}/bin/surge %{buildroot}%{_bindir}/surge + +%files +%license LICENSE +%doc README.md +%{_bindir}/surge + +%changelog +* Tue Feb 24 2026 Owen Zimmerman +- Initial commit diff --git a/anda/tools/surge/update.rhai b/anda/tools/surge/update.rhai new file mode 100644 index 0000000000..301d54ee48 --- /dev/null +++ b/anda/tools/surge/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("surge-downloader/Surge"));