updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / compat-wireless / PKGBUILD
blob0c6acdf308c5dd703e67735ee48fc6ede9865f5f
1 # Maintainer:  hokasch <hokasch at operamail dot com>
2 # Contributor: Dennis Brendel <buddabrod at gmail dot com>
4 pkgname=compat-wireless
5 pkgver=2011_03_30
6 pkgrel=1
7 pkgdesc='Snapshots of the wireless-testing tree ported to older kernels'
8 arch=('i686' 'x86_64')
9 url='http://wireless.kernel.org/'
10 license=('GPL')
11 depends=('kernel26')
12 makedepends=('linux-api-headers')
13 install=$pkgname.install
14 source=(http://wireless.kernel.org/download/compat-wireless-2.6/$pkgname-${pkgver//_/-}.tar.bz2)
16 sha1sums=('b2bac1330e9f9b471202ac30b654f19620e66df2')
20 build() {
21   cd "$srcdir/$pkgname-${pkgver//_/-}"
22   
23   ##select driver (optional): ath9k ath9k_htc ar9170 b43 zd1211rw
24   #scripts/driver-select ath9k 
26   ##uncomment if you encounter problems with rt2870 
27   #sed -i 's/^\# CONFIG_RT2800USB_RT30XX/CONFIG_RT2800USB_RT30XX/' config.mk
28   
29   make || return 1
30   make INSTALL_MOD_PATH=$pkgdir install-modules || return 1
31   install -dm755 $pkgdir/usr/sbin
32   install -dm755 $pkgdir/lib/udev/rules.d
33   install -dm755 $pkgdir/usr/lib/compat-wireless
34   install scripts/madwifi-unload        $pkgdir/usr/sbin/
35   install scripts/athenable             $pkgdir/usr/sbin/
36   install scripts/b43enable             $pkgdir/usr/sbin/
37   install scripts/iwl-enable            $pkgdir/usr/sbin/
38   install scripts/athload               $pkgdir/usr/sbin/
39   install scripts/b43load               $pkgdir/usr/sbin/
40   install scripts/iwl-load              $pkgdir/usr/sbin/
41   install udev/compat_firmware.sh       $pkgdir/lib/udev/
42   install udev/50-compat_firmware.rules $pkgdir/lib/udev/rules.d/
43   install scripts/modlib.sh             $pkgdir/usr/lib/compat-wireless/
44   install scripts/check_depmod          $pkgdir/usr/lib/compat-wireless/