compile matugen from sources instead of installing it from copr

This commit is contained in:
fb24m
2026-04-11 22:07:16 +04:00
parent 5f9febd4b7
commit 5e6db59bfc
3 changed files with 42 additions and 1 deletions
+41
View File
@@ -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
-1
View File
@@ -68,7 +68,6 @@ packages = [
"fish", "fish",
"fontconfig", "fontconfig",
"kitty", "kitty",
"matugen",
"florian-karsten-space-grotesk-fonts", "florian-karsten-space-grotesk-fonts",
"starship", "starship",
"jetbrains-mono-nerd-fonts", "jetbrains-mono-nerd-fonts",
+1
View File
@@ -38,6 +38,7 @@ function install_RPMS() {
"$rpm_specs/cpptrace.spec" "$rpm_specs/cpptrace.spec"
"$rpm_specs/quickshell-git.spec" "$rpm_specs/quickshell-git.spec"
"$rpm_specs/hyprland-qt-support.spec" "$rpm_specs/hyprland-qt-support.spec"
"$rpm_specs/matugen.spec"
) )
for spec_file in ${local_specs[@]}; do for spec_file in ${local_specs[@]}; do
# Download sources # Download sources