1 # Originally by kleptophobiac <kleptophobiac@gmail.com>
2 # Modified by James Rayner for the repositories <iphitus@gmail.com>
3 # Contributed by Max Nemeth <max dot nemeth at gmail dot com>
10 pkgdesc="Madwifi drivers for Atheros wireless chipsets. For ice kernel"
11 arch=('i686' 'x86_64')
13 url="http://madwifi-project.org"
14 depends=('madwifi-utils' 'kernel26-ice>=2.6.37' 'kernel26-ice<2.6.38')
15 makedepends=('sharutils' 'kernel26-headers>=2.6.37' 'kernel26-headers<2.6.38')
16 install=madwifi-ng.install
17 source=(ftp://ftp.archlinux.org/other/madwifi/madwifi-${pkgver}.tar.bz2)
18 md5sums=('ca3c3504d000e7b3d7063af46271c932')
21 [ "${CARCH}" = "i686" ] && export ARCH=i386
23 cd $startdir/src/madwifi
24 sed -i -e 's/-Werror//g' Makefile.inc
25 make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules|| return 1
26 make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules \
27 DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver install-modules
28 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
32 # install to wireless kernel directory
33 mkdir -p $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
34 mv $startdir/pkg/lib/modules/$_kernver/net/* $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
35 rm -r $startdir/pkg/lib/modules/$_kernver/net/