summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a200e664add0a33a214f2eb7640012247ac3b10d (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
# Maintainer: j.r <j.r@jugendhacker.de>
# Contributor: Matthew Murray <matt@mattmurr.xyz>
pkgname=open-fprintd
pkgver=0.6
pkgrel=1
pkgdesc="Fprintd replacement which allows you to have your own backend as a standalone service"
arch=(any)
license=('GPL')
depends=(python fprintd-clients)
makedepends=(python-setuptools)
conflicts=($pkgname)
provides=($pkgname)
url="https://github.com/uunicorn/${pkgname}"
source=("${url}/archive/${pkgver}.tar.gz")
md5sums=('3254779b0199521b79b6933700355606')

build() {
  cd $srcdir/$pkgname-$pkgver
  python setup.py build
}

package() {
  cd $srcdir/$pkgname-$pkgver
  python setup.py install --prefix=/usr --root $pkgdir || return 1

  install -D -m 644 debian/open-fprintd.service \
    $pkgdir/usr/lib/systemd/system/open-fprintd.service

  install -D -m 644 debian/open-fprintd-resume.service \
    $pkgdir/usr/lib/systemd/system/open-fprintd-resume.service

  install -D -m 644 debian/open-fprintd-suspend.service \
    $pkgdir/usr/lib/systemd/system/open-fprintd-suspend.service
}

# vim:set ts=2 sw=2 et: