From 7e701a1927fe14e74fac1c79351de144ab41659d Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 22 Nov 2025 21:36:25 -0800 Subject: [PATCH] add: itch butler (#7577) (#7579) --- anda/tools/butler-bin/anda.hcl | 6 +++++ anda/tools/butler-bin/butler-bin.spec | 37 +++++++++++++++++++++++++++ anda/tools/butler-bin/update.rhai | 1 + 3 files changed, 44 insertions(+) create mode 100644 anda/tools/butler-bin/anda.hcl create mode 100644 anda/tools/butler-bin/butler-bin.spec create mode 100644 anda/tools/butler-bin/update.rhai diff --git a/anda/tools/butler-bin/anda.hcl b/anda/tools/butler-bin/anda.hcl new file mode 100644 index 0000000000..9752e9348a --- /dev/null +++ b/anda/tools/butler-bin/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "butler-bin.spec" + } +} diff --git a/anda/tools/butler-bin/butler-bin.spec b/anda/tools/butler-bin/butler-bin.spec new file mode 100644 index 0000000000..7041911474 --- /dev/null +++ b/anda/tools/butler-bin/butler-bin.spec @@ -0,0 +1,37 @@ +Name: butler-bin +Version: 15.24.0 +Release: 1%?dist +Summary: Command-line itch.io helper. +URL: https://itch.io/docs/butler +Source0: https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default +Source1: https://raw.githubusercontent.com/itchio/butler/refs/heads/master/LICENSE +Source2: https://raw.githubusercontent.com/itchio/butler/refs/heads/master/README.md +License: MIT +Provides: itchio-butler-bin +Provides: itch-butler-bin +ExclusiveArch: x86_64 + +Packager: arbormoss + +%description +%summary. + +%prep +curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default +unzip butler.zip + +%build + +%install +install -Dm755 butler %{buildroot}%{_bindir}/butler +install -Dm644 %{S:1} %{buildroot}%{_defaultlicensedir}/butler-bin/LICENSE +install -Dm644 %{S:2} %{buildroot}%{_docdir}/butler-bin/README.md + +%files +%doc README.md +%license LICENSE +%{_bindir}/butler + +%changelog +* Sat Nov 22 2025 arbormoss +- Intial Commit diff --git a/anda/tools/butler-bin/update.rhai b/anda/tools/butler-bin/update.rhai new file mode 100644 index 0000000000..17ab893adf --- /dev/null +++ b/anda/tools/butler-bin/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("itchio/butler"));