Skip to content

Commit

Permalink
Update keyd.spec (#1)
Browse files Browse the repository at this point in the history
* Update keyd.spec

I copy from Makefile

* Add keyd-postinstall.sh

* single liner
  • Loading branch information
K1ngfish3r committed Oct 9, 2023
1 parent 6216d3b commit f46c93b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keyd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BuildRequires: pypi-python_xlib-python3
Provides: %{name} = %{version}-%{release}

%description
This is a VA-API implementation that uses VDPAU as a backend.
A key remapping daemon for Linux.

%prep
%setup -n %{name}-%{version}
Expand All @@ -36,12 +36,12 @@ install -m644 data/keyd.compose %{buildroot}%{_datadir}/%{name}
install -m644 layouts/* %{buildroot}%{_datadir}/%{name}/layouts
install -D -m644 keyd.service -t %{buildroot}/usr/lib/systemd/user/
sed -i 's|/usr/bin/keyd|/opt/3rd-party/bundles/clearfraction/usr/bin/keyd|g' %{buildroot}/usr/lib/systemd/user/keyd.service

echo -e '#!/bin/sh\nsudo groupadd keyd\nsudo ln -s /opt/3rd-party/bundles/clearfraction/usr/lib/systemd/user/keyd.service /usr/lib/systemd/system/keyd.service' >> %{buildroot}/usr/bin/keyd-postinstall.sh

%files
/usr/bin/*
/usr/share/keyd/*
/usr/lib/systemd/user/keyd.service

%changelog
# based on https://github.com/clearfraction/gstreamer-libav
# based on https://github.com/clearfraction/keyd

0 comments on commit f46c93b

Please sign in to comment.