From 18d8c2bc5154bab03a51caaab2c5e2f63cd5a19b Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 10 May 2026 23:38:45 -0500 Subject: [PATCH] add: brush-shell (#12197) (#12198) (cherry picked from commit bb92f5e7346f430f435b6adf9beffdac7cd722c1) Co-authored-by: J. <105894089+Its-J@users.noreply.github.com> --- anda/system/brush-shell/anda.hcl | 5 +++ anda/system/brush-shell/brush-shell.spec | 39 ++++++++++++++++++++++++ anda/system/brush-shell/update.rhai | 1 + 3 files changed, 45 insertions(+) create mode 100644 anda/system/brush-shell/anda.hcl create mode 100644 anda/system/brush-shell/brush-shell.spec create mode 100644 anda/system/brush-shell/update.rhai diff --git a/anda/system/brush-shell/anda.hcl b/anda/system/brush-shell/anda.hcl new file mode 100644 index 0000000000..76297eb4c8 --- /dev/null +++ b/anda/system/brush-shell/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "brush-shell.spec" + } +} diff --git a/anda/system/brush-shell/brush-shell.spec b/anda/system/brush-shell/brush-shell.spec new file mode 100644 index 0000000000..66770d9df6 --- /dev/null +++ b/anda/system/brush-shell/brush-shell.spec @@ -0,0 +1,39 @@ +Name: brush-shell +Version: 0.4.0 +Release: 1%{?dist} +Summary: bash/POSIX-compatible shell implemented in Rust +URL: https://github.com/reubeno/brush +Source0: %{url}/archive/refs/tags/%{name}-v%{version}.tar.gz +License: ((MIT OR Apache-2.0) AND NCSA) AND ((MIT OR Apache-2.0) AND Unicode-3.0) AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR BSL-1.0 OR MIT) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) AND WTFPL AND Zlib AND (Zlib OR Apache-2.0 OR MIT) + +BuildRequires: cargo-rpm-macros + +Provides: brush +Packager: Its-J + +%description +brush-shell is a modern bash- and POSIX- compatible shell written in Rust. +Run your existing scripts and .bashrc unchanged +with built-in syntax highlighting and auto-suggestions. + +%prep +%autosetup -n brush-%{name}-v%{version} +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm755 target/rpm/brush %{buildroot}%{_bindir}/brush +%cargo_license_summary_online +%{cargo_license_online} > LICENSE.dependencies + +%files +%{_bindir}/brush +%license LICENSE +%license LICENSE.dependencies +%doc README.md + +%changelog +* Sun May 10 2026 Its-J +- Package brush diff --git a/anda/system/brush-shell/update.rhai b/anda/system/brush-shell/update.rhai new file mode 100644 index 0000000000..3b52b6d991 --- /dev/null +++ b/anda/system/brush-shell/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("reubeno/brush"));