summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f6080231660be839e1198e34deb88f464034f1f (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
67
68
69
70
71
# Maintainer: acd407 <acd407@qq.com>
# Contributor: Timothy Gu <timothygu99@gmail.com>
# Contributor: Ivan Shapovalov <intelfx@intelfx.name>

## links
# https://gitlab.freedesktop.org/Xelef2000/libfprint/-/tree/feature/crfpmoc
# https://gitlab.freedesktop.org/libfprint/libfprint

## basic info
_pkgname="libfprint"
pkgname="$_pkgname-crfpmoc-git"
pkgver=1.94.8.r170.gb4c5b8d
pkgrel=1
pkgdesc="Library for fingerprint readers (crfpmoc feature branch)"
url="https://gitlab.freedesktop.org/Xelef2000/libfprint.git"
license=('LGPL-2.1-or-later')
arch=('x86_64')

depends=(
    libgudev
    libgusb
    nss
    pixman
)
makedepends=(
    git
    glib2-devel
    gobject-introspection
    gtk-doc
    meson
)
checkdepends=(
    python
    python-cairo
    python-gobject
    umockdev
)

provides=(
    "$_pkgname=$pkgver"
    'libfprint-2.so'
)
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+https://gitlab.freedesktop.org/Xelef2000/libfprint.git#branch=feature/crfpmoc")
sha256sums=('SKIP')

pkgver() {
    cd "$_pkgsrc"
    git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' --exclude='*_*' |
        sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
    local _meson_opts=(
        -Ddrivers=all
        -Dinstalled-tests=false
    )

    arch-meson "$_pkgsrc" build "${_meson_opts[@]}"
    meson compile -C build
}

check() {
    meson test -C build --print-errorlogs
}

package() {
    DESTDIR="$pkgdir" meson install -C build
}