void-packages/srcpkgs/libu2f-host/template
2019-06-14 10:40:54 +02:00

37 lines
1.2 KiB
Bash

# Template file for 'libu2f-host'
pkgname=libu2f-host
version=1.1.9
revision=2
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
configure_args="--with-openssl=yes --with-udevrulesdir=/usr/lib/udev/rules.d"
hostmakedepends="automake gengetopt libtool pkg-config"
makedepends="hidapi-devel json-c-devel libressl-devel"
short_desc="C library and tool that implements the host-side of the U2F protocol"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later, GPL-3-or-later"
homepage="https://developers.yubico.com/libu2f-host/"
#changelog="https://raw.githubusercontent.com/Yubico/libu2f-host/master/NEWS"
distfiles="https://github.com/Yubico/libu2f-host/archive/libu2f-host-${version}.tar.gz"
checksum=f2d9ac7d0bb448d213a81aa3c2e97ae48b277144040c74b5c4f33d871338e93c
conf_files="/usr/lib/udev/rules.d/70-u2f.rules"
pre_configure() {
autoreconf -fi
}
post_install() {
vsed -e 's:TAG+="uaccess":TAG+="uaccess", MODE="0660", GROUP="users":' \
-i ${DESTDIR}/usr/lib/udev/rules.d/70-u2f.rules
}
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
}
}