From df7ca3791819fdc18da9e9ea66946ca8d136a2ac Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 22 Oct 2015 09:15:37 +0200 Subject: [PATCH] New package: libu2f-host-1.0.0. --- common/shlibs | 1 + srcpkgs/libu2f-host-devel | 1 + .../patches/disable-help2man.patch | 15 +++++++++ srcpkgs/libu2f-host/template | 31 +++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 120000 srcpkgs/libu2f-host-devel create mode 100644 srcpkgs/libu2f-host/patches/disable-help2man.patch create mode 100644 srcpkgs/libu2f-host/template diff --git a/common/shlibs b/common/shlibs index ca5ca04c73..053fb632fb 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2237,3 +2237,4 @@ libbson-1.0.so.0 libbson-1.2.0_1 libsynfig.so.0 synfig-1.0.1_1 libhidapi-hidraw.so.0 hidapi-0.8.0rc1_1 libhidapi-libusb.so.0 hidapi-0.8.0rc1_1 +libu2f-host.so.0 libu2f-host-1.0.0_1 diff --git a/srcpkgs/libu2f-host-devel b/srcpkgs/libu2f-host-devel new file mode 120000 index 0000000000..eb359ed096 --- /dev/null +++ b/srcpkgs/libu2f-host-devel @@ -0,0 +1 @@ +libu2f-host \ No newline at end of file diff --git a/srcpkgs/libu2f-host/patches/disable-help2man.patch b/srcpkgs/libu2f-host/patches/disable-help2man.patch new file mode 100644 index 0000000000..69595a8c46 --- /dev/null +++ b/srcpkgs/libu2f-host/patches/disable-help2man.patch @@ -0,0 +1,15 @@ +--- src/Makefile.am.orig 2015-10-22 09:13:22.528361894 +0200 ++++ src/Makefile.am 2015-10-22 09:13:45.520587919 +0200 +@@ -31,12 +31,3 @@ cmdline.c cmdline.h: cmdline.ggo Makefil + + BUILT_SOURCES = cmdline.c cmdline.h + MAINTAINERCLEANFILES = $(BUILT_SOURCES) +- +-dist_man_MANS = u2f-host.1 +-DISTCLEANFILES = $(dist_man_MANS) +- +-u2f-host.1: $(srcdir)/u2f-host.c $(srcdir)/cmdline.ggo $(top_srcdir)/configure.ac +- $(AM_V_GEN)$(HELP2MAN) \ +- --output=$@ $(builddir)/u2f-host$(EXEEXT) \ +- --name="Yubico Universal 2nd Factor (U2F) Host Tool" \ +- --no-info diff --git a/srcpkgs/libu2f-host/template b/srcpkgs/libu2f-host/template new file mode 100644 index 0000000000..f83255cd54 --- /dev/null +++ b/srcpkgs/libu2f-host/template @@ -0,0 +1,31 @@ +# Template file for 'libu2f-host' +pkgname=libu2f-host +version=1.0.0 +revision=1 +wrksrc="${pkgname}-${pkgname}-${version}" +build_pie=yes +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 command-line tool that implements the host-side of the U2F protocol" +maintainer="Juan RP " +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=b1d2193eab69e1880e4adc07398f7fd5db19248ae84ef7981aa98a3fe4c411db + +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 + } +}