2020-02-14 11:58:03 +00:00
|
|
|
# Template file for 'libfido2'
|
|
|
|
pkgname=libfido2
|
2020-02-21 12:12:29 +00:00
|
|
|
version=1.3.1
|
2020-03-27 09:58:20 +00:00
|
|
|
revision=3
|
2020-02-14 11:58:03 +00:00
|
|
|
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 <leah@vuxu.org>"
|
|
|
|
license="BSD-2-Clause"
|
|
|
|
homepage="https://github.com/Yubico/libfido2"
|
|
|
|
distfiles="https://github.com/Yubico/libfido2/archive/${version}.tar.gz"
|
2020-02-21 12:12:29 +00:00
|
|
|
checksum=ba35e22016b60c1e4be66dff3cd6a60c1fe4bfa0d91ec0b89ca9da25ebeaaf41
|
2020-02-14 11:58:03 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|