# Template file for 'libfprint'
pkgname=libfprint
version=0.5.1
revision=2
build_style=gnu-configure
makedepends="libusb-devel nss-devel glib-devel gdk-pixbuf-devel"
hostmakedepends="pkg-config automake autoconf libtool"
short_desc="support for consumer fingerprint reader devices"
maintainer="Enno Boland"
license="LGPL"
homepage="http://www.freedesktop.org/wiki/Software/fprint/"
distfiles="http://people.freedesktop.org/~hadess/libfprint-${version}.tar.xz"
checksum=6d12563b91888b84b71eee6d2e113d8e9e9940c6a28a0915656b6f86b9568fb3
configure_args="--disable-static \
		--disable-udev-rules \
		--disable-static \
		--disable-examples-build \
		--disable-x11-examples-build \
		--disable-debug-log"

pre_configure() {
	autoreconf -fi
}

post_install() {
	vmkdir usr/lib/udev/rules.d
	vinstall $FILESDIR/60-fprint-autosuspend.rules 644 usr/lib/udev/rules.d
}

libfprint-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
