# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libfprint pkgver=0.4.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.bz2 uru4500-support.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="844b7618a095d247c27eedce99313ed2 libfprint-0.4.0.tar.bz2 237ab2988c4b9523c09a75d04cce931f uru4500-support.patch"