1 # Maintainer: dkite <dkite@shaw.ca>
6 #kgrel=$(pacman -Qii kernel26 | grep Version | sed s/Version\ \*:\ // | sed s/-/./)
7 pkgdesc="Kernel Modules for EEEPC"
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
18 asus_acpi.makefile.patch
19 atl2-2.0.3-modules_owner.patch
21 md5sums=('4aead641a000117ccc9b8421c82bdf7f'
22 '9f4b2815b8965624e639d1e7588b6cd0'
23 'dac9f9bfb56b028582b308e4796e1665'
24 'f99f1eed1a9b2283f3346b267d1b9a81'
25 '3b3a79642c99150bf4a2e883ddfd23d6'
26 'e173f343d08d4a19054e22c0ad86c2a6')
30 svnt=svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
33 cd ${startdir}/src/atl2-2.0.3
34 patch -p1 <../atl2-2.0.3-modules_owner.patch
35 msg "start to make atl2"
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/
43 if [ -d $svnm/.svn ]; then
46 svn co $svnt --config-dir ./ -r HEAD $svnm
48 msg "SVN checkout of done or server timeout"
49 msg "Starting make..."
51 cp -rf $svnm $svnm-build
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
61 unrar e -y ASUS_ACPI_071126.rar
62 tar -xzf asus_acpi.tar.gz
64 patch -p0 <../acpi.patch
65 patch -p1 < ../asus_acpi.makefile.patch
67 install -D -m644 asus_acpi.ko $startdir/pkg/lib/modules/$(uname -r)/kernel/drivers/acpi/asus_acpi.ko
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