mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
add quirks (#1998)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "duet-quirks.spec"
|
||||
}
|
||||
labels {
|
||||
nightly = "1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
%global commit_date 20240824
|
||||
%global commit d22b585a81b8645f1d660b4db22c95231c4301cf
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global debug_package %{nil}
|
||||
%define __os_install_post %{nil}
|
||||
|
||||
Name: duet-quirks
|
||||
Version: %commit_date.%shortcommit
|
||||
Release: 1%?dist
|
||||
|
||||
License: CC-BY-SA-4.0
|
||||
Summary: Quirks for the Lenovo Duet Chromebooks on Ultramarine Linux
|
||||
URL: https://github.com/Ultramarine-Linux/duet-quirks
|
||||
Source0: https://github.com/Ultramarine-Linux/duet-quirks/archive/%{commit}/duet-quirks-%{commit}.tar.gz
|
||||
|
||||
Requires: udev libinput
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Quirks for the Lenovo Duet Chromebooks on Ultramarine Linux.
|
||||
Including a libinput rule for trackpad configuration and a udev rule for display rotation.
|
||||
|
||||
%prep
|
||||
%autosetup -n duet-quirks-%commit
|
||||
|
||||
%install
|
||||
install -Dm644 udev/61-cros-ec-accel.rules %buildroot%{_sysconfdir}/udev/61-cros-ec-accel.rules
|
||||
install -Dm644 libinput/local-overrides.quirks %buildroot%{_sysconfdir}/libinput/local-overrides.quirks
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_sysconfdir}/udev/61-cros-ec-accel.rules
|
||||
%{_sysconfdir}/libinput/local-overrides.quirks
|
||||
|
||||
%changelog
|
||||
* Sat Aug 25 2024 junefish <june@fyralabs.com>
|
||||
- Initial package
|
||||
@@ -0,0 +1,7 @@
|
||||
if filters.contains("nightly") {
|
||||
rpm.global("commit", gh_commit("Ultramarine-Linux/duet-quirks"));
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
rpm.global("commit_date", date());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user