1 # Contributor: Petteri Tolonen <petteri.tolonen[at]gmail.com>
2 # Maintainer: Petteri Tolonen <petteri.tolonen[at]gmail.com>
7 pkgdesc="Broadcom CrystalHD kernel module"
9 url="http://linuxtv.org/git/jarod/crystalhd.git"
11 depends=('linux>=3.0' 'libcrystalhd-git')
12 makedepends=('autoconf' 'linux-headers>=3.0' 'make' 'git')
13 install='crystalhd-git.install'
14 conflicts=('crystalhd')
15 _gitroot='git://linuxtv.org/jarod/crystalhd.git'
22 msg "Connecting to the GIT server...."
24 if [ -d $startdir/src/$_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
35 ./configure --prefix=/usr
36 sed -i 's/'-Werror'/''/g' Makefile
38 if ! grep -q "<linux/delay.h>" $srcdir/crystalhd/driver/linux/crystalhd_flea_ddr.c
40 sed -i '26i #include <linux/delay.h>' $srcdir/crystalhd/driver/linux/crystalhd_flea_ddr.c
45 mkdir -p $pkgdir/etc/udev/rules.d
46 mkdir -p $pkgdir/lib/modules/$(uname -r)/kernel/drivers/video/broadcom
48 cp -f 20-crystalhd.rules $pkgdir/etc/udev/rules.d/
49 install -d $pkgdir/lib/modules/$(uname -r)/kernel/drivers/video/broadcom
50 install -m 0644 crystalhd.ko $pkgdir/lib/modules/$(uname -r)/kernel/drivers/video/broadcom