summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cec75b49c6cf09cf89835ba0e1faafbd6056ea76 (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: Sam Toxopeus <sam@toxopeus.it>
# Contributor: gborzi <gborzi@ieee.org>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Thomas Baechler <thomas@archlinux.org>

pkgname=libfprint-1
_pkgname=libfprint
pkgver=1.0
pkgrel=2
pkgdesc="Library for fingerprint readers - old stable version"
arch=(x86_64)
url="https://fprint.freedesktop.org/"
license=(LGPL)
depends=(libusb nss pixman glib2)
makedepends=(git meson gtk-doc systemd)
provides=('libfprint=1.0')
groups=(fprint)
_commit=823f2c1067a27deae4153dd9ece6ce24bedc0680  # tags/V_1_0^0
source=("git+https://gitlab.freedesktop.org/libfprint/libfprint.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/^V_//;s/_/./g;s/-/+/g'
}

prepare() {
  cd $_pkgname
}

build() {
  arch-meson $_pkgname build -D x11-examples=false -D gtk-examples=false
  ninja -C build
}

check() {
  meson test -C build
}

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