summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2f3abcd4c34ba393620543f8cbe8d8a682e51be (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
# Maintainer: Charles Villard <charles at villard (dot) it>

# This installs a proprietary driver for the 0a5c:586* fingerprint reader. The driver is distributed in binary
# form by its manufacturer and follows their own copyright - please refer to their license at the source
# or the LICENSE file installed by this package

pkgname=libfprint-2-tod1-broadcom-cv3plus
_pkgdirname=libfprint-2-tod1-broadcom-cv3plus
pkgver=6.1.028.0
pkgrel=1
pkgdesc="Proprietary driver for the fingerprint reader on the Dell Precision - direct from Dell's Ubuntu repo"
arch=(x86_64)
url="https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/libfprint-2-tod1-broadcom-cv3plus"
license=(custom)
depends=(libfprint-tod)
makedepends=(git)
checkdepends=()
optdepends=()
provides=()
conflicts=()
groups=(fprint)
source=("git+https://git.launchpad.net/~oem-solutions-engineers/pc-enablement/+git/libfprint-2-tod1-broadcom-cv3plus/")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgdirname
  sed -n 's/.*version: \([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p' ./var/lib/fprint/.broadcomCv3plusFW/bcm_cv_current_version.txt
}

package() {
  cd $_pkgdirname
  # Create target directories in the package and use -Dm after to avoid repeating long filenames
  install -dm 755 "$pkgdir/usr/lib/libfprint-2/tod-1/"
  install -dm 755 "$pkgdir/usr/lib/udev/rules.d/"
  install -dm 755 "$pkgdir/var/lib/fprint/.broadcomCv3plusFW/"

  # licence
  install -Dm 644 ./LICENCE.broadcom "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  # drivers
  install -Dm 755 usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-2-tod-1-broadcom-cv3plus.so "$pkgdir/usr/lib/libfprint-2/tod-1/"
  # udev rules
  cp -r lib/udev/rules.d/* "$pkgdir/usr/lib/udev/rules.d/"
  # firmware
  cp -r var/lib/fprint/.broadcomCv3plusFW/* "$pkgdir/var/lib/fprint/.broadcomCv3plusFW/"
}