2 # Copyright (C) 2020 Linos Giannopoulos
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/Yubico
/libfido2
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=813d6d25116143d16d2e96791718a74825da16b774a8d093d96f06ae1730d9c5
18 PKG_MAINTAINER
:=Linos Giannopoulos
<linosgian00
+openwrt@gmail.com
>
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
28 define Package
/libfido2
32 URL
:=https
://github.com
/Yubico
/libfido2
34 DEPENDS
+= +libcbor
+libopenssl
+libudev
+zlib
37 define Package
/libfido2
/description
38 libfido2 provides library functionality and command-line tools to communicate with a FIDO device over USB
, and to verify attestation and assertion signatures.
40 libfido2 supports the FIDO U2F
(CTAP
1) and FIDO
2.0 (CTAP
2) protocols.
44 -DBUILD_EXAMPLES
=OFF \
45 -DBUILD_MANPAGES
=OFF \
46 -DBUILD_SHARED_LIBS
=ON \
47 -DBUILD_STATIC_LIBS
=OFF \
53 define Package
/libfido2
/install
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfido2.so.
* $(1)/usr
/lib
/
58 $(eval
$(call BuildPackage
,libfido2
))