updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / madwifi-hal / PKGBUILD
blob981ba1b9a4a11f63e7bcba021575c934aaff2e9b
1 # Contributor: Kravchuk Sergei <alfss.obsd@gmail.com>
3 _kernver=`uname -r`
4 pkgname=madwifi-hal
5 pkgver=0.10.5.6r4126
6 pkgrel=1
7 _rpkgver=0.10.5.6-r4126-20100324
8 pkgdesc="Madwifi hal branch drivers for Atheros wireless chipsets. For stock arch 2.6 kernel"
9 arch=('i686' 'x86_64')
10 license=('GPL')
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')
17 build() {
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} \
22         BINDIR=/usr/bin \
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/