36 lines
926 B
Bash
36 lines
926 B
Bash
# Template file for 'libfido2'
|
|
pkgname=libfido2
|
|
version=1.4.0
|
|
revision=2
|
|
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=ad921fbe7d4bb70e4a971e564cd01f341daf9b5ed5d69b3cbab94a8a811d2a6c
|
|
|
|
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
|
|
}
|
|
}
|