aboutsummaryrefslogtreecommitdiffstats
path: root/community/libfprint
diff options
context:
space:
mode:
Diffstat (limited to 'community/libfprint')
-rw-r--r--community/libfprint/APKBUILD38
-rw-r--r--community/libfprint/fix-stderr.patch14
2 files changed, 52 insertions, 0 deletions
diff --git a/community/libfprint/APKBUILD b/community/libfprint/APKBUILD
new file mode 100644
index 0000000000..30762c73a4
--- /dev/null
+++ b/community/libfprint/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=libfprint
+pkgver=1.0
+pkgrel=1
+pkgdesc="fingerprint reader and identification library"
+url="https://fprint.freedesktop.org/"
+arch="all"
+license="LGPL-2.1-or-later"
+makedepends="
+ meson
+ glib-dev
+ libusb-dev
+ pixman-dev
+ nss-dev
+ eudev-dev
+ "
+subpackages="$pkgname-dev"
+source="https://gitlab.freedesktop.org/libfprint/libfprint/uploads/aff93e9921d1cff53d7c070944952ff9/libfprint-$pkgver.tar.xz
+ fix-stderr.patch
+ "
+
+build() {
+ meson \
+ --prefix /usr \
+ --buildtype=plain \
+ -Dx11-examples=false \
+ -Ddoc=false \
+ output
+ ninja -C output
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C output install
+}
+
+sha512sums="6a38a691d1f2d5fe19b5bbda9b77321d2e34f1a3aa8b61f38109e0095b28e156cdd7be5ade8f3db8ff26045f8556b68e938b3e1378f4b6d84a2106566e7fdb53 libfprint-1.0.tar.xz
+9bd5d606ff9f672507775567c7f71428bb0cd62de61d762979f36e91bc98c1d72569c3d405ed013fa3148300919b36c31c654d376d547cf7829cafeede6abea9 fix-stderr.patch"
diff --git a/community/libfprint/fix-stderr.patch b/community/libfprint/fix-stderr.patch
new file mode 100644
index 0000000000..cde438231e
--- /dev/null
+++ b/community/libfprint/fix-stderr.patch
@@ -0,0 +1,14 @@
+diff --git a/libfprint/nbis/include/bozorth.h b/libfprint/nbis/include/bozorth.h
+index 08ec4b1..6d744d9 100644
+--- a/libfprint/nbis/include/bozorth.h
++++ b/libfprint/nbis/include/bozorth.h
+@@ -217,8 +217,6 @@ struct xytq_struct {
+ /**************************************************************************/
+ /* Globals supporting command line options */
+ extern int verbose_threshold;
+-/* Global supporting error reporting */
+-extern FILE *stderr;
+
+ /**************************************************************************/
+ /* In: BZ_GBLS.C */
+