From eec55f79cf8d8cd9c72ade27f437e748ee600d8e Mon Sep 17 00:00:00 2001 From: "J." <105894089+Its-J@users.noreply.github.com> Date: Sat, 23 May 2026 19:02:36 -0500 Subject: [PATCH] add: `mangobar` (#12514) * add: mangobar * fix: add suggests mangowm Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Signed-off-by: J. <105894089+Its-J@users.noreply.github.com> --------- Signed-off-by: J. <105894089+Its-J@users.noreply.github.com> Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/desktops/waylands/mangobar/anda.hcl | 8 +++ anda/desktops/waylands/mangobar/mangobar.spec | 50 +++++++++++++++++++ anda/desktops/waylands/mangobar/update.rhai | 5 ++ 3 files changed, 63 insertions(+) create mode 100644 anda/desktops/waylands/mangobar/anda.hcl create mode 100644 anda/desktops/waylands/mangobar/mangobar.spec create mode 100644 anda/desktops/waylands/mangobar/update.rhai diff --git a/anda/desktops/waylands/mangobar/anda.hcl b/anda/desktops/waylands/mangobar/anda.hcl new file mode 100644 index 0000000000..90be7645da --- /dev/null +++ b/anda/desktops/waylands/mangobar/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "mangobar.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/desktops/waylands/mangobar/mangobar.spec b/anda/desktops/waylands/mangobar/mangobar.spec new file mode 100644 index 0000000000..00f93fbfce --- /dev/null +++ b/anda/desktops/waylands/mangobar/mangobar.spec @@ -0,0 +1,50 @@ +%global commit e5e8e35953c03e07e163a4967feda7af6aba7803 +%global commit_date 20260509 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: mangobar +Version: 0~%{commit_date}git.%{shortcommit} +Release: 1%{?dist} +Summary: A suckless-esc bar for mangowc +URL: https://github.com/Gur0v/mangobar +Source0: %{url}/archive/%{commit}/mangobar-%{commit}.tar.gz +SourceLicense: GPL-3.0-or-later +License: %{sourcelicense} AND (Apache-2.0 OR MIT) AND MIT AND GPL-3.0 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND Apache-2.0 AND (Unlicense OR MIT) + +BuildRequires: rust +BuildRequires: cargo-rpm-macros +BuildRequires: gtk4 +BuildRequires: gtk4-devel +BuildRequires: gtk4-layer-shell +BuildRequires: gtk4-layer-shell-devel +BuildRequires: gdk-pixbuf2 +BuildRequires: gdk-pixbuf2-devel +BuildRequires: wireplumber + +Suggests: mangowm +Packager: Its-J + +%description +%{summary}. + +%prep +%autosetup -n mangobar-%{commit} +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm 755 target/rpm/mangobar %{buildroot}%{_bindir}/mangobar +%cargo_license_summary_online +%{cargo_license_online} > LICENSE.dependencies + +%files +%{_bindir}/mangobar +%license LICENSE +%license LICENSE.dependencies +%doc README.md + +%changelog +* Sat May 23 2026 Its-J +- Package mangobar diff --git a/anda/desktops/waylands/mangobar/update.rhai b/anda/desktops/waylands/mangobar/update.rhai new file mode 100644 index 0000000000..864ae82f8b --- /dev/null +++ b/anda/desktops/waylands/mangobar/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("Gur0v/mangobar")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}