updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / eeemodules / PKGBUILD
blobcb421b70b2fe3d7d1ed4139757ee23d574de12a1
1 # Maintainer: dkite <dkite@shaw.ca>
3 pkgname=eeemodules
4 pkgver=0.0.3
5 pkgrel=4
6 #kgrel=$(pacman -Qii kernel26 | grep Version | sed s/Version\ \*:\ // | sed s/-/./)
7 pkgdesc="Kernel Modules for EEEPC"
8 arch=("i686")
9 license=('GPL')
10 depends=('kernel26')
11 makedepends=('unrar' 'svn')
12 url="http://members.shaw.ca/dkite"
13 install=eeemodules.install
14 source=(http://people.redhat.com/csnook/atl2/atl2-2.0.3.tar.bz2
15         ftp://ftp.asus.com/pub/ASUS/EeePC/701/ASUS_ACPI_071126.rar
16         http://downloads.openwrt.org/people/mbm/eee/kernel/wifi/madwifi-src-patched.tar.gz
17         acpi.patch
18         asus_acpi.makefile.patch
19         atl2-2.0.3-modules_owner.patch
20         )
21 md5sums=('4aead641a000117ccc9b8421c82bdf7f'
22         '9f4b2815b8965624e639d1e7588b6cd0'
23         'dac9f9bfb56b028582b308e4796e1665'
24         'f99f1eed1a9b2283f3346b267d1b9a81'
25         '3b3a79642c99150bf4a2e883ddfd23d6'
26         'e173f343d08d4a19054e22c0ad86c2a6')
29 svnm=linux_uvc
30 svnt=svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
31 build() {
33         cd ${startdir}/src/atl2-2.0.3
34         patch -p1 <../atl2-2.0.3-modules_owner.patch
35         msg "start to make atl2"
36         make
37         msg "copying atl2.ko"
38         install -D -m644 atl2.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/drivers/net/atl2.ko
39 #       mkdir -p ${startdir}/pkg/lib/modules/2.6.23-ARCH/kernel/drivers/net
40 #       cp  atl2.ko ${startdir}/pkg/lib/modules/2.6.23-ARCH/kernel/drivers/net/
41         msg "svn up"
42         cd ${startdir}/src
43         if [ -d $svnm/.svn ]; then
44            (cd $svnm && svn up)
45         else
46            svn co $svnt --config-dir ./ -r HEAD $svnm
47         fi
48         msg "SVN checkout of  done or server timeout"
49         msg "Starting make..."
50         rm -rf $svnm-build
51         cp -rf $svnm $svnm-build
52         cd $svnm-build
53         make
54         install -D -m644 uvcvideo.ko $startdir/pkg/lib/modules/$(uname -r)/usb/media/uvcvideo.ko
56 #       mkdir -p ${startdir}/pkg/lib/modules/2.6.23-ARCH/kernel/drivers/video
57 #       cp uvcvideo.ko ${startdir}/pkg/lib/modules/2.6.23-ARCH/kernel/drivers/video
59         # install the asus_acpi modules
60         cd $startdir/src
61         unrar e -y ASUS_ACPI_071126.rar
62         tar -xzf asus_acpi.tar.gz
63         cd asus_acpi
64         patch -p0 <../acpi.patch
65         patch -p1 < ../asus_acpi.makefile.patch
66         make
67         install -D -m644 asus_acpi.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/drivers/acpi/asus_acpi.ko
68         
69         # install atheros wifi driver
70         cd $startdir/src/madwifi-ng-r2756-20071018
71 #       patch -p0 <../madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw
72         BINDIR=/usr/bin MANDIR=/usr/man make
73         BINDIR=/usr/bin MANDIR=/usr/man make DESTDIR=$startdir/pkg install