void-packages/srcpkgs/libfprint/template
2015-08-09 19:08:42 +02:00

40 lines
1.2 KiB
Bash

# Template file for 'libfprint'
pkgname=libfprint
version=0.5.1
revision=4
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 <gottox@voidlinux.eu>"
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
# 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"
}
}