1 # Contributor: Kravchuk Sergei <alfss.obsd@gmail.com>
7 _rpkgver=0.10.5.6-r4126-20100324
8 pkgdesc="Madwifi hal branch drivers for Atheros wireless chipsets. For stock arch 2.6 kernel"
11 url="http://madwifi-project.org/"
12 depends=('kernel26 kernel26-headers')
13 install=${pkgname}.install
14 source=(http://snapshots.madwifi-project.org/${pkgname}-0.10.5.6/${pkgname}-${_rpkgver}.tar.gz)
15 md5sums=('583f60b7885700bc3dcf779dbb328798')
18 cd ${srcdir}/${pkgname}-${_rpkgver}
19 sed -i -e 's/-Werror//g' Makefile.inc
20 make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver all || return 1
21 make DESTDIR=${pkgdir} \
23 MANDIR=/usr/share/man install || return 1
24 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
26 # install to wireless kernel directory
27 mkdir -p $pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
28 mv $pkgdir/lib/modules/$_kernver/net/* $pkgdir/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
29 rm -r $pkgdir/lib/modules/$_kernver/net/