Skip to content

Commit

Permalink
add quirks (#1998)
Browse files Browse the repository at this point in the history
  • Loading branch information
june-fish authored Aug 25, 2024
1 parent ae24791 commit b90e576
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
8 changes: 8 additions & 0 deletions anda/system/duet-quirks/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "duet-quirks.spec"
}
labels {
nightly = "1"
}
}
39 changes: 39 additions & 0 deletions anda/system/duet-quirks/duet-quirks.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
- Initial package
7 changes: 7 additions & 0 deletions anda/system/duet-quirks/update.rhai
Original file line number Diff line number Diff line change
@@ -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());
}
}

0 comments on commit b90e576

Please sign in to comment.