Created
October 11, 2016 07:58
-
-
Save tonylambiris/cc215849f8c1467d88b7d1ddda78546a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io> | |
pkgname="bcwc-pcie-dkms" | |
pkgver=0r229.48f9854 | |
pkgrel=1 | |
pkgdesc="Reverse engineered Linux driver for the Broadcom 1570 PCIe webcam." | |
arch=('x86_64') | |
url="https://github.com/patjak/bcwc_pcie" | |
license=('unknown') | |
depends=('kmod' 'bcwc-pcie-firmware' 'dkms' 'linux-headers') | |
makedepends=('git') | |
conflicts=("bcwc-pcie" "bcwc-pcie-git") | |
provides=("bcwc-pcie") | |
install="$pkgname.install" | |
source=("$pkgname::git+https://github.com/patjak/bcwc_pcie.git" | |
"bcwc-pcie.modprobe.conf" | |
"bcwc-pcie.modules-load.conf" | |
"fix-build-4.8.1.patch") | |
md5sums=('SKIP' | |
'7531f220d5c3dd0ab5c31c445d526d7f' | |
'd8dc0e4e125b7887b226bda0c28f30be' | |
'c8fbe016a8d250602b43575bf35c200c') | |
pkgver() { | |
cd "$srcdir/$pkgname" | |
printf "0r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
package() { | |
cd "$srcdir/" | |
install -Dm 644 $pkgname/dkms.conf "${pkgdir}/usr/src/bcwc-pcie-${pkgver}/dkms.conf" | |
cd $srcdir/$pkgname | |
patch -p1 -F3 -i "${srcdir}/fix-build-4.8.1.patch" | |
for FILE in $(find -type f); do | |
install -Dm 644 "$FILE" "$pkgdir/usr/src/${pkgname/-dkms/}-${pkgver}/$FILE" | |
done | |
install -Dm 644 "$srcdir/bcwc-pcie.modprobe.conf" \ | |
"$pkgdir/etc/modprobe.d/bcwc-pcie.conf" | |
install -Dm 644 "$srcdir/bcwc-pcie.modules-load.conf" \ | |
"${pkgdir}/etc/modules-load.d/bcwc-pcie.conf" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment