# Template file for 'nitrokey-udev-rules' pkgname=nitrokey-udev-rules version=1.1.0 revision=1 short_desc="Udev rules for Nitrokey devices" maintainer="Mateusz Sylwestrzak " license="CC0-1.0" homepage="https://github.com/Nitrokey/nitrokey-udev-rules" distfiles="https://github.com/Nitrokey/nitrokey-udev-rules/archive/refs/tags/v${version}.tar.gz" checksum=c2e0166f4c624317ca407d84255a318e3d219b04854631c12028c9ce5b53ddd9 post_patch() { # allow non-elogind users to access Nitrokey devices vsed -i 41-nitrokey.rules \ -e '/TAG\s*+=\s*"uaccess"/s/$/, GROUP="plugdev"/' } do_install() { vinstall 41-nitrokey.rules 0644 usr/lib/udev/rules.d }