1 # Contributor: buddabrod <buddabrod@gmail.com>
3 pkgname=compat-wireless-git-old
7 pkgdesc="Backported wireless-testing modules"
8 url="http://linuxwireless.org"
9 depends=('kernel26>=2.6.25' 'kernel26<2.6.27')
10 arch=('i686' 'x86_64')
12 install=$pkgname.install
13 source=(makefile.patch)
15 _gitroot="git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/compat-wireless-2.6-old.git"
16 _gitname="compat-wireless-2.6-old"
22 msg "Connecting to GIT server...."
24 if [ -d $startdir/src/$_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
35 cd $startdir/src/$_gitname-build
37 patch -Np1 -i ../makefile.patch || return 1
38 echo -ne "CONFIG_IWL3945_LEDS=y\nCONFIG_IWLWIFI_LEDS=y\nCONFIG_MAC80211_LEDS=y\n" >> config.mk
39 make KLIB=/lib/modules/${_kernver} DESTDIR=${startdir}/pkg install || return 1
40 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
41 rm -rf $startdir/src/$_gitname-build