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"));