blob: 92082515e7852caba0ea09cfa37d52281c11639a (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: reburn <au0228@outlook.com>
pkgname=libfprint-cs9711-rebase-git
_pkgname=libfprint-CS9711
pkgver=1.94.10+1.r1866.20260216.02b285c
pkgrel=1
pkgdesc="libfprint with CS9711 fingerprint driver support (archeYR fork, cs9711-rebase branch)"
arch=(x86_64)
url="https://github.com/archeYR/libfprint-CS9711"
license=(LGPL-2.1-or-later)
depends=(
gcc-libs
glib2
glibc
libgudev
libgusb
opencv
openssl
pixman
)
makedepends=(
git
glib2-devel
gobject-introspection
gtk-doc
meson
python-cairo
python-gobject
systemd
cmake
doctest
)
checkdepends=(
cairo
umockdev
doctest
)
provides=("libfprint=${pkgver}" "libfprint-2.so" "libfprint-cs9711")
conflicts=(libfprint)
groups=(fprint)
source=("git+https://github.com/archeYR/libfprint-CS9711.git#branch=cs9711-rebase")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
_ver="$(git describe --tags --long 2>/dev/null | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
if [ -z "$_ver" ]; then
_ver="1.94.10+1"
fi
_rev="$(git rev-list --count HEAD)"
_date="$(git log -1 --date=format:'%Y%m%d' --format='%ad')"
_hash="$(git rev-parse --short HEAD)"
printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
}
build() {
local meson_options=(
-D installed-tests=false
)
arch-meson "$_pkgname" build "${meson_options[@]}"
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
}
|