New Package: libu2f-server v1.0.1

This commit is contained in:
Michael Aldridge 2015-10-29 14:28:25 -05:00
parent 8e860eb705
commit 8e129779cd
4 changed files with 63 additions and 0 deletions

1
srcpkgs/libu2f-server-devel Symbolic link
View file

@ -0,0 +1 @@
libu2f-server

View file

@ -0,0 +1,24 @@
--- src/Makefile.am.orig 2015-11-09 10:56:00.391780111 -0600
+++ src/Makefile.am 2015-11-09 10:56:14.510779188 -0600
@@ -40,21 +40,6 @@
BUILT_SOURCES = cmdline.c cmdline.h
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
-dist_man_MANS = $(top_srcdir)/man/u2f-server.1
-DISTCLEANFILES = $(dist_man_MANS)
-
-$(top_srcdir)/man/u2f-server.1: $(srcdir)/u2f-server.c $(srcdir)/cmdline.ggo $(top_srcdir)/configure.ac
- $(HELP2MAN) \
- --output=$(top_builddir)/man/$@ $(builddir)/u2f-server$(EXEEXT) \
- --name="Yubico Universal 2nd Factor (U2F) Server Tool" \
- --no-info
-if ENABLE_H2A
- $(HELP2ADOC) \
- -e $(builddir)/u2f-server$(EXEEXT) \
- --name="Yubico Universal 2nd Factor (U2F) Server Tool" \
- > $(top_builddir)/man/$@.txt
-endif
-
clean-local:
rm -f $(top_builddir)/man/*.[1-9]
rm -f $(top_builddir)/man/*.[1-9].txt

View file

@ -0,0 +1,35 @@
# Template file for 'libu2f-server'
pkgname=libu2f-server
version=1.0.1
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_pie=yes
build_style=gnu-configure
configure_args="--enable-gtk-doc-html=no"
hostmakedepends="automake libtool pkg-config gengetopt check"
makedepends="json-c-devel hidapi-devel libressl-devel check-devel"
short_desc="Yubico Universal 2nd Factor (U2F) Server C Library"
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
license="BSD"
homepage="https://developers.yubico.com/libu2f-server/"
distfiles="https://github.com/Yubico/libu2f-server/archive/libu2f-server-${version}.tar.gz"
checksum="d87405ab7b271c3f674d64af8c878fdbf74d3b1d76b09de000c0d2cda5b44828"
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense COPYING LICENSE
}
libu2f-server-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
}
}

View file

@ -0,0 +1,3 @@
site=https://github.com/Yubico/libu2f-server/releases
pattern=tag-name">libu2f-server-\K\d+.\d+.\d+(?=<\/span>)
version=${version//./_}