void-packages/srcpkgs/libfido2/template

36 lines
926 B
Bash

# Template file for 'libfido2'
pkgname=libfido2
version=1.3.1
revision=3
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"
checksum=ba35e22016b60c1e4be66dff3cd6a60c1fe4bfa0d91ec0b89ca9da25ebeaaf41
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
}
}