PKGBUILD 1.46 KB
Newer Older
gnastyle's avatar
gnastyle committed
1
pkgname=fingerprint-gui
2
pkgver=1.09
3
pkgrel=3
gnastyle's avatar
gnastyle committed
4 5 6 7
pkgdesc="Application for fingerprint-based authentication, automatically support UPEK fingerprint readers with non-free library"
arch=('x86_64')
url="http://www.ullrich-online.cc/fingerprint/"
license=('GPL')
8
depends=('libfprint' 'libfakekey' 'polkit-qt5' 'qca-qt5' 'qt5-x11extras')
9 10 11 12
optdepends=('libusb: for libbsapi')
source=("https://github.com/maksbotan/${pkgname}/archive/v${pkgver}-qt5.tar.gz"
        "fingerprint-gui-udev-path.patch"
        "fingerprint-gui-udev-0050.patch")
AlmAck's avatar
AlmAck committed
13 14 15
sha1sums=('41649cfa5cb42f4ae5327095da0585425a6b3dd0'
          'f75eec87ab45d0fd6a2bcf3a6282ac19843c5380'
          'a9afa47bab503fa9f6798940a12365058b997b96')
gnastyle's avatar
gnastyle committed
16

17
prepare() {
18 19 20
  cd $pkgname-$pkgver-qt5
  patch -p1 -i ../fingerprint-gui-udev-path.patch
  patch -p1 -i ../fingerprint-gui-udev-0050.patch
21 22
}

gnastyle's avatar
gnastyle committed
23
build() {
24
  cd $pkgname-$pkgver-qt5
AlmAck's avatar
AlmAck committed
25
  qmake-qt5 PREFIX=/usr LIB=/usr/lib QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXXFLAGS="${CXXFLAGS}"
Chaoting Liu's avatar
Chaoting Liu committed
26
  make #LIBS+=' -lqca'
gnastyle's avatar
gnastyle committed
27 28 29
}

package() {
30 31
  cd $pkgname-$pkgver-qt5
  make INSTALL_ROOT=$pkgdir install
32 33
  make INSTALL_ROOT="${pkgdir}/" upek-rules
  make INSTALL_ROOT="${pkgdir}/" upek-cfg
gnastyle's avatar
gnastyle committed
34

35
  # upstream build rule wanna create group/change rights as well
gnastyle's avatar
gnastyle committed
36
  install -dm770 "${pkgdir}/var/upek_data"
37 38
  # we are using custom rule to define arch by using our mechanisms
  # (e.g. crossplatform build)
gnastyle's avatar
gnastyle committed
39
  install -Dm644 upek/lib64/libbsapi.so.* "${pkgdir}/usr/lib/"
40 41

  install -Dm644 "CHANGELOG" "COPYING" "${pkgdir}/usr/share/doc/${pkgname}/"
gnastyle's avatar
gnastyle committed
42
}