blob: 7ed1e2971688394a9a18f0355359ba516bc5c5d6 (
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
|
# Maintainer: Benjamin Manuel <ben@benmanuel.com>
pkgname=python-validity-git
_pkgdirname=python-validity
pkgver=0.12.r0.gfcd862d
pkgrel=1
pkgdesc="Validity fingerprint sensor driver"
arch=(any)
license=(MIT)
depends=(python python-pyusb python-cryptography python-dbus python-gobject python-yaml
innoextract open-fprintd fprintd-clients)
makedepends=(git python-setuptools)
conflicts=(python-validity)
provides=(python-validity)
url="https://github.com/uunicorn/python-validity"
source=("${_pkgdirname}::git+https://github.com/uunicorn/python-validity.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgdirname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $srcdir/$_pkgdirname
python setup.py build
}
package() {
cd $srcdir/$_pkgdirname
python setup.py install --prefix=/usr --root $pkgdir || return 1
install -D -m 644 debian/python3-validity.service \
$pkgdir/usr/lib/systemd/system/python3-validity.service
install -D -m 644 debian/python3-validity.udev \
$pkgdir/usr/lib/udev/rules.d/60-python-validity.rules
}
# vim:set ts=2 sw=2 et:
|