# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libfprint pkgver=0.5.0 pkgrel=0 pkgdesc="fingerprint reader and identification library" url="http://www.freedesktop.org/wiki/Software/fprint/libfprint" arch="all" license="LGPL-2.1" depends="" depends_dev="libusb-dev" makedepends="$depends_dev nss-dev glib-dev gdk-pixbuf-dev" install="" subpackages="$pkgname-dev" source="http://people.freedesktop.org/~hadess/libfprint-$pkgver.tar.xz 0001-uru4000-fix-race-condition-on-waiting-power-up-irq.patch 0002-uru4000-fix-cancelling-of-imaging-from-error-callbac.patch 0003-imgdev-fix-cancelling-of-enrollment-from-stage_compl.patch " _builddir="$srcdir"/libfprint-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-dependency-tracking \ --enable-fast-install \ --with-pic \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="65d118369a47a93be623816f54cdb847 libfprint-0.5.0.tar.xz 2a184777defbdb90a8c0ef32f6246b49 0001-uru4000-fix-race-condition-on-waiting-power-up-irq.patch 8e5f6cd2a4967a818729f6fb7e992881 0002-uru4000-fix-cancelling-of-imaging-from-error-callbac.patch 9c3e6511cd4ac0cdc889e170ed22d954 0003-imgdev-fix-cancelling-of-enrollment-from-stage_compl.patch"