void-packages/srcpkgs/libu2f-host/template
2016-03-30 02:03:54 -04:00

30 lines
973 B
Bash

# Template file for 'libu2f-host'
pkgname=libu2f-host
version=1.1.1
revision=2
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
configure_args="--with-openssl=yes --with-udevrulesdir=/usr/lib/udev/rules.d"
hostmakedepends="automake libtool pkg-config gengetopt"
makedepends="json-c-devel hidapi-devel libressl-devel"
short_desc="C library and tool that implements the host-side of the U2F protocol"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="https://developers.yubico.com/libu2f-host/"
distfiles="https://github.com/Yubico/libu2f-host/archive/libu2f-host-${version}.tar.gz"
checksum=3ba3cfe599a2c2a15b501b57467f8bb23fce959ca84b86c2be6dade2f899e72c
pre_configure() {
autoreconf -fi
}
libu2f-host-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}