add: croskbd (#6698) (#6703)

* add: croskbd



* Dont need this dep



* Patch fixed upstream



* Clean up install args



---------


(cherry picked from commit af36bced73)

Signed-off-by: Owen <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2025-10-07 19:15:36 -07:00
committed by GitHub
parent d9b122d90e
commit 1ca52216fb
3 changed files with 53 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "croskbd.spec"
}
}
+43
View File
@@ -0,0 +1,43 @@
Name: croskbd
Version: 0.1.0
Release: 1%{?dist}
Summary: Chromebook Keyboard Daemon
License: BSD-3-Clause
URL: https://github.com/WeirdTreeThing/croskbd
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Packager: Owen Zimmerman <owen@fyralabs.com>
BuildRequires: make gcc systemd-rpm-macros
%description
%{summary}.
%prep
%autosetup -n %{name}-%{version}
%build
%make_build
%install
%make_install DESTDIR=%{buildroot} PREFIX=%{_prefix} install install_systemd
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%changelog
* Tue Oct 07 2025 Owen-sz <owen@fyralabs.com>
- Initial commit
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("WeirdTreeThing/croskbd"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}