libfido2: ship udev rules

- libu2f-host is archived by Yubico
- udev rules from libfido2 is more updated
This commit is contained in:
Đoàn Trần Công Danh 2020-10-16 06:34:30 +07:00
parent 870a4e59c3
commit cae276a0c3
1 changed files with 7 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# Template file for 'libfido2'
pkgname=libfido2
version=1.5.0
revision=2
revision=3
build_style=cmake
configure_args="-DUDEV_RULES_DIR=/usr/lib/udev/rules.d"
hostmakedepends="pkg-config"
makedepends="libcbor-devel libressl-devel eudev-libudev-devel"
short_desc="Library for FIDO 2.0, including communication with a device over USB"
@ -11,6 +12,9 @@ license="BSD-2-Clause"
homepage="https://github.com/Yubico/libfido2"
distfiles="https://github.com/Yubico/libfido2/archive/${version}.tar.gz"
checksum=5990f923c9390fe1e6a00ba5d1d1f74030e7344b855e971d9fb7223e70ff3122
# udev rules used to be shipped by libu2f-host
conf_files="/usr/lib/udev/rules.d/70-u2f.rules"
conflicts="libu2f-host<=1.1.10_3"
CFLAGS="-Wno-type-limits"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
@ -25,6 +29,8 @@ pre_configure() {
post_install() {
vlicense LICENSE
vsed -e 's/GROUP="plugdev"/GROUP="users"/' \
-i ${DESTDIR}/usr/lib/udev/rules.d/70-u2f.rules
}
libfido2-devel_package() {