updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / dkms-madwifi / PKGBUILD
blobca3bd80b364a378b69743da018748e95067868c4
1 # Contributor: Troels Liebe Bentsen <tlb@rapanden.dk>
2 _modname=madwifi
3 pkgname=dkms-madwifi
4 pkgver=0.9.3.1
5 pkgrel=2
6 pkgdesc="Madwifi drivers for Atheros wireless chipsets."
7 arch=(i686 x86_64)
8 url="http://madwifi.org"
9 license=("GPL")
10 depends=('dkms' 'madwifi-utils')
11 replace=('madwifi' 'madwifi-suspend2' 'madwifi-ck')
12 conflicts=('madwifi' 'madwifi-suspend2' 'madwifi-ck')
13 provides=('madwifi' 'madwifi-suspend2' 'madwifi-ck')
14 install=madwifi.install
15 source=(http://heanet.dl.sourceforge.net/madwifi/madwifi-${pkgver}.tar.bz2
16     dkms.conf)
18 md5sums=('4704b0e09d76d616217f89de87e4a1ac'
19          'c0da6c2c26476654ad592a07e567e3bb')
21 build() {
22   cd $startdir/src/$_modname-$pkgver
23   mkdir -p $startdir/pkg/usr/src/$_modname-$pkgver-$pkgrel
24   cp -a ath/ ath_hal/ ath_rate/ hal/ include/ net80211/ scripts/ BuildCaps.inc kernelversion.c Makefile Makefile.inc release.h $startdir/pkg/usr/src/$_modname-$pkgver-$pkgrel/
25   sed -i -e "s/PACKAGE_VERSION=\".*\"/PACKAGE_VERSION=\"${pkgver}-${pkgrel}\"/" $startdir/dkms.conf
26   cp $startdir/dkms.conf $startdir/pkg/usr/src/$_modname-$pkgver-$pkgrel/