void-packages/srcpkgs/libu2f-host/template
maxice8 ef6046d280 libu2f-host: update to 1.1.5.
Closes: #12236 [via git-merge-pr]
2018-03-08 00:13:48 -08:00

34 lines
1.1 KiB
Bash

# Template file for 'libu2f-host'
pkgname=libu2f-host
version=1.1.5
revision=1
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-or-later, GPL-3-or-later"
homepage="https://developers.yubico.com/libu2f-host/"
distfiles="https://github.com/Yubico/libu2f-host/archive/libu2f-host-${version}.tar.gz"
checksum=9d4a84acc50306264fd419015fac41b943a53a16e2feeb0db078aa1bde7f6747
pre_configure() {
autoreconf -fi
}
post_install() {
sed -i 's:TAG+="uaccess":MODE="0660", GROUP="plugdev":' ${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
}
}