summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 030a7b227e9a9acd78136c0a68c5c306396a5529 (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
# Maintainer: Harrison <contact@htv04.com>
# Contributor: Vladislav Ivanishin <vladislav.ivanishin@gmail.com>
# Contributor: Aetf <aetf@unlimitedcodeworks.xyz>
# Contributor: Hugo Osvaldo Barrera <hugo@barrera.io>
# Contributor: Christoph Gysin <christoph.gysin@gmail.com>

pkgname=facetimehd-dkms-git
pkgver=0.6.8.2.r0.gd47bb25
pkgrel=2
pkgdesc='Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam'
arch=('any')
url='https://github.com/patjak/facetimehd'
license=('GPL2')
depends=('facetimehd-firmware' 'dkms')
makedepends=('git')
optdepends=('facetimehd-data: Sensor calibration data')
provides=('facetimehd-dkms' 'bcwc-pcie' 'bcwc-pcie-dkms')
replaces=('facetimehd-dkms' 'bcwc-pcie' 'bcwc-pcie-dkms')

source=("$pkgname::git+https://github.com/patjak/facetimehd.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long --tags | sed 's/-/.r/;s/-/./'
}

package() {
  cd "$srcdir/$pkgname"
  for FILE in dkms.conf Makefile *.[ch]; do
    install -Dm644 "$FILE" "$pkgdir/usr/src/facetimehd-$pkgver/$FILE"
  done
}