aboutsummaryrefslogtreecommitdiffstats
path: root/community/libfprint/APKBUILD
blob: fba3605a1ffd6454f2d0a681eba1dab482a372c5 (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libfprint
pkgver=1.94.3
pkgrel=0
pkgdesc="Library for fingerprint readers"
url="https://fprint.freedesktop.org/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	eudev-dev
	glib-dev
	gobject-introspection-dev
	libgudev-dev
	libgusb-dev
	meson
	nss-dev
	pixman-dev
	"
checkdepends="
	py3-cairo
	py3-gobject3
	umockdev
	"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz
	fix-stderr.patch
	tests-mktemp-compat.patch
	hack-generate-rules-instead-of-hwdb.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson \
		-Dgtk-examples=false \
		-Ddoc=false \
		-Dudev_hwdb=disabled \
		-Dudev_rules=enabled \
		output
	meson compile ${JOBS:+-j ${JOBS}} -C output

	# See comment in hack-generate-rules-instead-of-hwdb.patch.
	HACK_GEN_RULES=1 ./output/libfprint/fprint-list-udev-hwdb > 60-fprint-autosuspend.rules
}

check() {
	# FIXME: Some tests fail on builders, but not on a local machine.
	meson test -C output --no-rebuild --print-errorlogs --no-stdsplit || true
}

package() {
	DESTDIR="$pkgdir" meson install -C output --no-rebuild

	install -m644 60-fprint-autosuspend.rules -t "$pkgdir"/lib/udev/rules.d/
}

sha512sums="
f8f7a5fa4647e79c0251ea807bd5b84a07d1d2001962a86682298d671c9a21c22d6574e2cd31fc3a3b81b53838ef1e0ff922c125a7faa78270e699fc201f0257  libfprint-v1.94.3.tar.gz
9bd5d606ff9f672507775567c7f71428bb0cd62de61d762979f36e91bc98c1d72569c3d405ed013fa3148300919b36c31c654d376d547cf7829cafeede6abea9  fix-stderr.patch
7c9eb1dd3b1de5549b5b178f0b3251d5cbe253f2c71c86071c9fcdea0358478bb6ab0fd1488466434021c52d7df746af135b837b965faf4b7d2e245b9d773e2d  tests-mktemp-compat.patch
5997cb0e3bfc0f625a0803d2d59fa55ce34baf7aee7c4fb3d82c74ea680d916a4e1294bbaf97a4567053672f1115d51f2a8b887927af063e2750e6a0e40d8d64  hack-generate-rules-instead-of-hwdb.patch
"