diff --git a/common/shlibs b/common/shlibs index 226345a55ef..a73e39883de 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3777,3 +3777,4 @@ libmpirxx.so.8 mpir-3.0.0_1 libcaribou.so.0 libcaribou-0.4.21_3 libtinyclipboard.so.1 tinyclipboard-16.01_1 libcbor.so.0 libcbor-0.5.0_1 +libfido2.so.1 libfido2-1.3.0_1 diff --git a/srcpkgs/libfido2-devel b/srcpkgs/libfido2-devel new file mode 120000 index 00000000000..91a20ed769f --- /dev/null +++ b/srcpkgs/libfido2-devel @@ -0,0 +1 @@ +libfido2 \ No newline at end of file diff --git a/srcpkgs/libfido2/template b/srcpkgs/libfido2/template new file mode 100644 index 00000000000..0c1c8d9775d --- /dev/null +++ b/srcpkgs/libfido2/template @@ -0,0 +1,35 @@ +# Template file for 'libfido2' +pkgname=libfido2 +version=1.3.0 +revision=1 +build_style=cmake +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" +maintainer="Leah Neukirchen " +license="BSD-2-Clause" +homepage="https://github.com/Yubico/libfido2" +distfiles="https://github.com/Yubico/libfido2/archive/${version}.tar.gz" +checksum=0b2e3671c4c5d42fd5604a08e45f89f49592b97cf66d7d3bfbc7e6a4d5a0fec7 + +case "$XBPS_TARGET_MACHINE" in +*-musl) + CFLAGS="-Wno-overflow" # ioctl takes int on musl + ;; +esac + +post_install() { + vlicense LICENSE +} + +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 + } +}