39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'libfido2'
|
|
pkgname=libfido2
|
|
version=1.7.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DUDEV_RULES_DIR=/usr/lib/udev/rules.d"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="eudev-libudev-devel libcbor-devel openssl-devel zlib-devel"
|
|
short_desc="Library for FIDO 2.0, including communication with a device over USB"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/Yubico/libfido2"
|
|
distfiles="https://github.com/Yubico/libfido2/archive/${version}.tar.gz"
|
|
checksum=116749b2a6c95f6559439494fcebdbe803dff14037017ad239843c84c59d708e
|
|
# 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"
|
|
|
|
post_extract() {
|
|
vsed -i -e '/add_compile_options(-Werror)/d' CMakeLists.txt
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsed -e 's/GROUP="plugdev"/GROUP="users"/' \
|
|
-i ${DESTDIR}/usr/lib/udev/rules.d/70-u2f.rules
|
|
}
|
|
|
|
libfido2-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision} libcbor-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|