blob: 538c0aedea7c8d870b2ecdfcb07fa50d59dae805 (
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
|
# Contributor: Petteri Tolonen <petteri.tolonen[at]gmail.com>
# Maintainer: Petteri Tolonen <petteri.tolonen[at]gmail.com>
pkgname=crystalhd-git
pkgver=`date +%Y%m%d`
pkgrel=1
pkgdesc="Broadcom Crystal HD kernel module from git.wilsonet.com"
arch=('i686' 'x86_64')
url="http://git.wilsonet.com/crystalhd.git/"
license=('GPL2')
depends=()
makedepends=('autoconf' 'kernel26-headers>=2.6.32.9' 'make' 'git')
conflicts=('crystalhd')
install='crystalhd-git.install'
_gitroot='git://git.wilsonet.com/crystalhd.git'
_gitname='crystalhd'
build() {
cd $startdir/src
msg "Connecting to git.wilsonet.com GIT server...."
if [ -d $startdir/src/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
cd $_gitname
fi
cd driver/linux
autoconf
./configure --prefix=/usr
make KDIR=/lib/modules/2.6.34-LinHES/build || return 1
mkdir -p $pkgdir/etc/udev/rules.d
mkdir -p $pkgdir/lib/modules/$(uname -r)/kernel/drivers/video/broadcom
cp -f 20-crystalhd.rules $pkgdir/etc/udev/rules.d/
install -d $pkgdir/lib/modules/$(uname -r)/kernel/drivers/video/broadcom
install -m 0644 crystalhd.ko $pkgdir/lib/modules/$(uname -r)/kernel/drivers/video/broadcom
}
|