From 5e6db59bfcf1225559ad5284fb36709ddfcd300b Mon Sep 17 00:00:00 2001 From: fb24m Date: Sat, 11 Apr 2026 22:07:16 +0400 Subject: [PATCH 1/2] compile matugen from sources instead of installing it from copr --- sdata/dist-fedora/SPECS/matugen.spec | 41 ++++++++++++++++++++++++++++ sdata/dist-fedora/feddeps.toml | 1 - sdata/dist-fedora/install-deps.sh | 1 + 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 sdata/dist-fedora/SPECS/matugen.spec diff --git a/sdata/dist-fedora/SPECS/matugen.spec b/sdata/dist-fedora/SPECS/matugen.spec new file mode 100644 index 000000000..9117c04ab --- /dev/null +++ b/sdata/dist-fedora/SPECS/matugen.spec @@ -0,0 +1,41 @@ +# Original-Spec: https://copr-dist-git.fedorainfracloud.org/packages/errornointernet/quickshell/quickshell-git.git/plain/quickshell-git.spec?h=master + +%global commit e65259d68edc034905da477b6c1a349e89e2aa8d +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commits 719 +%global snapdate 20260213 +%global tag 4.0.0 + +Name: matugen +Version: %{tag}^%{commits}.%{shortcommit} +Release: 0%{?dist} +Summary: A cross-platform material you and base16 color generation tool + +License: GPL-2.0 +URL: https://github.com/InioX/matugen +Source0: %{url}/archive/%{commit}/matugen-%{shortcommit}.tar.gz + +BuildRequires: rust-packaging +BuildRequires: cargo +BuildRequires: gcc + +%description +Flexible toolkit for making desktop shells with QtQuick, targeting +Wayland and X11. + +%prep +%autosetup -n matugen-%{commit} -p1 + +%build +cargo build --release + +%install +install -Dm0755 target/release/matugen %{buildroot}%{_bindir}/matugen + +%files +%license LICENSE +%doc README.md +%{_bindir}/matugen + +%changelog +%autochangelog diff --git a/sdata/dist-fedora/feddeps.toml b/sdata/dist-fedora/feddeps.toml index 7329cdfc5..e1b842e50 100644 --- a/sdata/dist-fedora/feddeps.toml +++ b/sdata/dist-fedora/feddeps.toml @@ -68,7 +68,6 @@ packages = [ "fish", "fontconfig", "kitty", - "matugen", "florian-karsten-space-grotesk-fonts", "starship", "jetbrains-mono-nerd-fonts", diff --git a/sdata/dist-fedora/install-deps.sh b/sdata/dist-fedora/install-deps.sh index 55c0d8112..4bb925667 100644 --- a/sdata/dist-fedora/install-deps.sh +++ b/sdata/dist-fedora/install-deps.sh @@ -38,6 +38,7 @@ function install_RPMS() { "$rpm_specs/cpptrace.spec" "$rpm_specs/quickshell-git.spec" "$rpm_specs/hyprland-qt-support.spec" + "$rpm_specs/matugen.spec" ) for spec_file in ${local_specs[@]}; do # Download sources From 4b4e1fd53cdfe49cb08cf227dd71e2824caf7cb9 Mon Sep 17 00:00:00 2001 From: fb24m Date: Sat, 11 Apr 2026 22:23:08 +0400 Subject: [PATCH 2/2] unquickshell matugen.spec --- sdata/dist-fedora/SPECS/matugen.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sdata/dist-fedora/SPECS/matugen.spec b/sdata/dist-fedora/SPECS/matugen.spec index 9117c04ab..9f7bc70aa 100644 --- a/sdata/dist-fedora/SPECS/matugen.spec +++ b/sdata/dist-fedora/SPECS/matugen.spec @@ -1,5 +1,3 @@ -# Original-Spec: https://copr-dist-git.fedorainfracloud.org/packages/errornointernet/quickshell/quickshell-git.git/plain/quickshell-git.spec?h=master - %global commit e65259d68edc034905da477b6c1a349e89e2aa8d %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commits 719 @@ -20,8 +18,7 @@ BuildRequires: cargo BuildRequires: gcc %description -Flexible toolkit for making desktop shells with QtQuick, targeting -Wayland and X11. +A cross-platform material you and base16 color generation tool %prep %autosetup -n matugen-%{commit} -p1