updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / compat-wireless-git-old / PKGBUILD
blob25ba9f36923328c4566dd8a6e973b8777f7313eb
1 # Contributor: buddabrod <buddabrod@gmail.com>
3 pkgname=compat-wireless-git-old
4 _kernver=`uname -r`
5 pkgver=20080916
6 pkgrel=1
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')
11 license=('GPL')
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"
18 md5sums=()
19 build() {
21   cd $startdir/src
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."
27   else
28     git clone $_gitroot
29   fi
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