mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
@@ -1,6 +0,0 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "gnome-shell-extension-gpu-supergfxctl-switch.spec"
|
||||
}
|
||||
}
|
||||
-43
@@ -1,43 +0,0 @@
|
||||
%global commit 1de26db2ea4166fdca85306300b12bdc24f2c955
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global commit_date 20250925
|
||||
%global ver 11
|
||||
%global extension gpu-switcher-supergfxctl
|
||||
%global uuid %{extension}@chikobara.github.io
|
||||
|
||||
Name: gnome-shell-extension-%{extension}
|
||||
Version: %ver^%commit_date.%shortcommit
|
||||
Release: 3%{?dist}
|
||||
Summary: GPU Profile switcher Gnome-Shell-Extension for ASUS laptops using Supergfxctl
|
||||
License: GPL-3.0-only
|
||||
URL: https://github.com/chikobara/GPU-Switcher-Supergfxctl
|
||||
|
||||
Source0: %url/archive/%commit.tar.gz
|
||||
|
||||
Requires: gnome-shell >= 48~
|
||||
Requires: asusctl
|
||||
Requires: supergfxctl
|
||||
Recommends: gnome-extensions-app
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Packager: june-fish <june@fyralabs.com>
|
||||
|
||||
%description
|
||||
GPU Profile switcher Gnome-Shell-Extension for ASUS laptops using Supergfxctl
|
||||
|
||||
%prep
|
||||
%autosetup -n GPU-Switcher-Supergfxctl-%{commit} -p1
|
||||
|
||||
%install
|
||||
install -Dm644 metadata.json %{buildroot}%{_gnomeextensionsdir}/metadata.json
|
||||
install -Dm644 extension.js %{buildroot}%{_gnomeextensionsdir}/extension.js
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_gnomeextensionsdir}
|
||||
|
||||
%changelog
|
||||
* Mon Oct 27 2025 june-fish <june@fyralabs.com> - 11
|
||||
- Initial Package
|
||||
@@ -1,9 +0,0 @@
|
||||
if filters.contains("nightly") {
|
||||
rpm.global("commit", gh_commit("chikobara/GPU-Switcher-Supergfxctl"));
|
||||
if rpm.changed() {
|
||||
let v = find("\"version\": ([.\\d]+)\n", gh_rawfile("chikobara/GPU-Switcher-Supergfxctl", "main", "metadata.json"), 1);
|
||||
rpm.global("ver", v);
|
||||
rpm.global("commit_date", date());
|
||||
rpm.release();
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "supergfxctl.spec"
|
||||
}
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
Name: supergfxctl
|
||||
Version: 5.2.7
|
||||
Release: 2%?dist
|
||||
Summary: GPU Utility for ASUS ROG Laptops
|
||||
URL: https://gitlab.com/asus-linux/supergfxctl
|
||||
Source0: %url/-/archive/%{version}/supergfxctl-%{version}.tar.gz
|
||||
SourceLicense: MPL-2.0
|
||||
License: ((MIT OR Apache-2.0) AND Unicode-3.0) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND (Unlicense OR MIT)
|
||||
BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold rust-udev-devel
|
||||
BuildRequires: rpm_macro(systemd_post)
|
||||
Packager: Its-J <jonah@fyralabs.com>
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n supergfxctl-%{version}
|
||||
%cargo_prep_online
|
||||
|
||||
%build
|
||||
%cargo_license_summary_online
|
||||
%{cargo_license_online} > LICENSE.dependencies
|
||||
%cargo_build -f "cli daemon"
|
||||
|
||||
%install
|
||||
install -Dm 0755 target/rpm/supergfxd target/rpm/supergfxctl -t %buildroot%_bindir
|
||||
install -Dm 0644 data/90-supergfxd-nvidia-pm.rules %{buildroot}%{_udevrulesdir}/90-supergfxd-nvidia-pm.rules
|
||||
install -Dm 0644 data/org.supergfxctl.Daemon.conf %{buildroot}%{_datadir}/dbus-1/system.d/org.supergfxctl.Daemon.conf
|
||||
install -Dm 0644 data/supergfxd.preset %{buildroot}%{_presetdir}/99-supergfxd.preset
|
||||
install -Dm 0644 data/90-nvidia-screen-G05.conf %{buildroot}%{_datadir}/X11/xorg.conf.d/90-nvidia-screen-G05.conf
|
||||
install -Dm 0644 data/supergfxd.service -t %buildroot%_unitdir
|
||||
|
||||
%post
|
||||
%systemd_post supergfxd.service
|
||||
|
||||
%preun
|
||||
%systemd_preun supergfxd.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart supergfxd.service
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/supergfxctl
|
||||
%{_bindir}/supergfxd
|
||||
%{_udevrulesdir}/90-supergfxd-nvidia-pm.rules
|
||||
%{_datadir}/X11/xorg.conf.d/90-nvidia-screen-G05.conf
|
||||
%{_datadir}/dbus-1/system.d/org.supergfxctl.Daemon.conf
|
||||
%{_unitdir}/supergfxd.service
|
||||
# We should not be installing .preset files (errors if not listed)
|
||||
%ghost %{_presetdir}/99-supergfxd.preset
|
||||
|
||||
%changelog
|
||||
* Tue Apr 14 2026 Its-J <jonah@fyralabs.com>
|
||||
- Add email to my previous contributor attributions
|
||||
|
||||
* Sun Oct 26 2025 Its-J <jonah@fyralabs.com>
|
||||
- Package SuperGFXctl
|
||||
@@ -1,3 +0,0 @@
|
||||
let v = gitlab_tag("bcdca4be");
|
||||
v.replace("-", "~");
|
||||
rpm.version(v);
|
||||
Reference in New Issue
Block a user