# Maintainer: Jan Alexander Steffens (heftig) # Contributor: Nikolay Rysev # Modified for vfs_proprietary by Daniel Kamil Kozar # Modified for libfprint2 by Stephen Bird # Contributor: Timothy Gu pkgname=fprintd-libfprint2 _pkgname=fprintd pkgver=1.90.1+82+gfcd2d65 pkgrel=1 pkgdesc="D-Bus service to access fingerprint readers" arch=(x86_64) url="https://www.freedesktop.org/wiki/Software/fprint/fprintd" license=(GPL) depends=(dbus-glib 'libfprint-git>=1.90.0' libsystemd 'polkit>=0.91') optdepends=('pam: to use the fprintd pam plugin') provides=(fprintd) conflicts=(fprintd) makedepends=(git gtk-doc meson pam) checkdepends=(pam_wrapper python-cairo python-dbus python-dbusmock python-gobject) groups=(fprint) source=("git+https://gitlab.freedesktop.org/libfprint/$_pkgname.git") sha256sums=('SKIP') pkgver() { cd $_pkgname git describe --tags | sed 's/^V_//;s/_/./g;s/-/+/g' } prepare() { cd $_pkgname } build() { arch-meson $_pkgname build \ -D pam_modules_dir=/usr/lib/security \ -D gtk_doc=true ninja -C build } check() { # Unfortunately, the PAM tests often end up cluttering /tmp with pam.* # directories, causing random failures the next time tests get run. msg2 'Removing stale /tmp/pam.[0-9A-Za-z] directories before testing' rm -rf /tmp/pam.[0-9A-Za-z] meson test -C build --print-errorlogs } package() { depends+=(libfprint-2.so) DESTDIR="$pkgdir" meson install -C build install -d -m 700 "$pkgdir/var/lib/fprint" }