void-packages/srcpkgs/libfprint/template
2016-03-30 02:03:54 -04:00

40 lines
1.2 KiB
Bash

# Template file for 'libfprint'
pkgname=libfprint
version=0.6.0
revision=2
build_style=gnu-configure
makedepends="libusb-devel nss-devel glib-devel gdk-pixbuf-devel pixman-devel"
hostmakedepends="pkg-config automake autoconf libtool"
short_desc="Support for consumer fingerprint reader devices"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL"
homepage="http://www.freedesktop.org/wiki/Software/fprint/"
distfiles="http://people.freedesktop.org/~hadess/libfprint-${version}.tar.xz"
checksum=2583fcb7d542a918c023776f188067fcedec614e65494dd52bc4d661be803cbe
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
# even with --disable-udev-rules, the rules are installed
rm -r "$DESTDIR/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"
}
}