summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d37c587d298f13f27374de80cb4627a06026e34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: j.r <j.r@jugendhacker.de>
# Contributor: Matthew Murray <matt@mattmurr.xyz>
pkgname=fprintd-clients
pkgver=1.90.1.r2.g54e56d6
pkgrel=3
pkgdesc='Fprintd without the daemon'
arch=(x86_64)
license=('GPL')
depends=(glib2 libfprint polkit dbus dbus-glib libsystemd)
makedepends=(git meson pam_wrapper python-cairo python-dbus python-dbusmock)
conflicts=(fprintd fprintd-clients)
provides=($pkgname)
url="https://gitlab.freedesktop.org/uunicorn/fprintd"
source=("${pkgname}::git+${url}.git#branch=debian/clients-only"
	'0001-disable-systemd-reactivated.diff')

pkgver() {
	cd "$pkgname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd $pkgname
	git checkout 54e56d660bf9730f8abc8f2c6a358ef2fec675f2
	patch -Np1 < $srcdir/disable-systemd-reactivated.diff
}

build() {
	arch-meson $pkgname build \
		-D pam_modules_dir=/usr/lib/security
	meson compile -C build
}

check() {
	meson test -C build
}

package() {
	depends+=(libfprint-2.so)

	DESTDIR=$pkgdir meson install -C build
	install -d -m 700 "${pkgdir}/var/lib/fprint"
}