diff --git a/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/anda.hcl b/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/anda.hcl new file mode 100644 index 0000000000..bf107f8450 --- /dev/null +++ b/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "gnome-shell-extension-multi-monitors-bar.spec" + } +} diff --git a/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/gnome-shell-extension-multi-monitors-bar.spec b/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/gnome-shell-extension-multi-monitors-bar.spec new file mode 100644 index 0000000000..8ed5d49581 --- /dev/null +++ b/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/gnome-shell-extension-multi-monitors-bar.spec @@ -0,0 +1,58 @@ +%global commit 655e48c7ebda01916ee1b466f625c3aa58d83413 +%global commit_date 20251218 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%global extension multi-monitors-bar +%global uuid %{extension}@frederykabryan + +Name: gnome-shell-extension-%{extension} +Version: 0~%{commit_date}git.%{shortcommit} +Release: 1%?dist +Summary: Add multiple monitors overview and panel for GNOME Shell. This is an updated fork with GNOME 46 compatibility +License: GPL-2.0-or-later +URL: https://github.com/FrederykAbryan/multi-monitors-bar_fapv2 + +BuildArch: noarch + +Source0: %url/archive/%commit/multi-monitors-bar_fapv2-%commit.tar.gz +# README declared the license, but they do not provide a license file +Source1: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt + +Requires: (gnome-shell >= 48~ with gnome-shell < 50~) +Recommends: gnome-extensions-app + +Packager: Owen Zimmerman + +%description +%summary. + +%prep +%autosetup -n multi-monitors-bar_fapv2-%commit + +cp %{SOURCE1} . + +%build + +%install +find . -name "*.gschema.xml" +mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid} +install -Dm644 *.json %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/ +install -Dm644 *.js %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/ +install -Dm644 *.css %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/ +install -Dm644 schemas/*.gschema.xml -t %{buildroot}%{_datadir}/glib-2.0/schemas/ + +%post +glib-compile-schemas %{_datadir}/glib-2.0/schemas/ &> /dev/null || : + +%postun +glib-compile-schemas %{_datadir}/glib-2.0/schemas/ &> /dev/null || : + +%files +%license gpl-2.0.txt +%doc README.md +%{_datadir}/gnome-shell/extensions/%{uuid} +%{_datadir}/glib-2.0/schemas/*.gschema.xml + +%changelog +* Thu Jan 01 2026 Owen Zimmerman +- Initial commit diff --git a/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/update.rhai b/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/update.rhai new file mode 100644 index 0000000000..255ca7a345 --- /dev/null +++ b/anda/desktops/gnome/gnome-shell-extension-multi-monitors-bar/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("FrederykAbryan/multi-monitors-bar_fapv2")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}