diff --git a/common/shlibs b/common/shlibs index c55d6c02ac8..04c50017e31 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1571,6 +1571,7 @@ libtcmalloc.so.4 gperftools-2.1_1 libaio.so.1 libaio-0.3.109_1 libofx.so.7 libofx-0.9.11_1 libsigsegv.so.2 libsigsegv-2.10_2 +libfprint.so.0 libfprint0-1.0_1 libfprint-2.so.2 libfprint-1.90.7_1 libwx_baseu_xml-3.0.so.0 wxWidgets-common-3.0.4_1 libwx_baseu-3.0.so.0 wxWidgets-common-3.0.4_1 diff --git a/srcpkgs/libfprint0-devel b/srcpkgs/libfprint0-devel new file mode 120000 index 00000000000..f5b92a78c25 --- /dev/null +++ b/srcpkgs/libfprint0-devel @@ -0,0 +1 @@ +libfprint0 \ No newline at end of file diff --git a/srcpkgs/libfprint0/patches/fix-stderr-redefinition.patch b/srcpkgs/libfprint0/patches/fix-stderr-redefinition.patch new file mode 100644 index 00000000000..3784ccba869 --- /dev/null +++ b/srcpkgs/libfprint0/patches/fix-stderr-redefinition.patch @@ -0,0 +1,12 @@ +--- libfprint/nbis/include/bozorth.h.orig 2019-08-11 15:17:26.878344708 +0200 ++++ libfprint/nbis/include/bozorth.h 2019-08-11 15:17:10.303132150 +0200 +@@ -218,7 +218,9 @@ struct xytq_struct { + /* Globals supporting command line options */ + extern int verbose_threshold; + /* Global supporting error reporting */ ++#ifdef __GLIBC__ + extern FILE *stderr; ++#endif + + /**************************************************************************/ + /* In: BZ_GBLS.C */ diff --git a/srcpkgs/libfprint0/template b/srcpkgs/libfprint0/template new file mode 100644 index 00000000000..2d31deb97f4 --- /dev/null +++ b/srcpkgs/libfprint0/template @@ -0,0 +1,33 @@ +# Template file for 'libfprint0' +pkgname=libfprint0 +version=1.0 +revision=2 +wrksrc="libfprint-V_${version//./_}" +build_style=meson +configure_args="-Dudev_rules=false -Dx11-examples=false -Dgtk-examples=false -Ddoc=false" +hostmakedepends="pkg-config" +makedepends="libusb-devel nss-devel glib-devel gdk-pixbuf-devel pixman-devel" +depends="libfprint-udev-rules" +short_desc="Support for consumer fingerprint reader devices" +maintainer="Enno Boland " +license="LGPL-2.1-or-later" +homepage="http://www.freedesktop.org/wiki/Software/fprint/" +changelog="https://gitlab.freedesktop.org/libfprint/libfprint/raw/master/NEWS" +distfiles="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/V_${version//./_}/libfprint-V_${version//./_}.tar.bz2" +checksum=22777a1d202ef912395b94842ae6b531338c8d48a8a813616e846b1bc96c5ad9 +provides="libfprint-${version}_${revision}" +replaces="libfprint<=${version}_1" + +post_install() { + vmkdir usr/lib/udev/rules.d +} + +libfprint0-devel_package() { + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +} diff --git a/srcpkgs/libfprint0/update b/srcpkgs/libfprint0/update new file mode 100644 index 00000000000..bebe6bef5f3 --- /dev/null +++ b/srcpkgs/libfprint0/update @@ -0,0 +1,2 @@ +pattern='/archive/[^/]+/\Q'"$pkgname"'\E-v?_\K[\d\._]+(?=\.tar\.gz")' +ignore='*.99.* 1.9* [2-9].*'