updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rt73-k2wrlz / PKGBUILD
bloba1e92b2a937d7dc4a304f509f8ddaaa3ef667e3c
1 # Contributor: nofxx <x@nofxx.com>
2 # Maintainer: Merkil <merkil33@gmail.com>
3 pkgname=rt73-k2wrlz
4 pkgver=3.0.3
5 pkgrel=4
6 pkgdesc="RaLink RT73 USB Enhanced Drivers"
7 arch=('i686' 'x86_64')
8 url="http://homepages.tu-darmstadt.de/~p_larbig/wlan"
9 license=('GPL')
10 depends=('kernel26')
11 makedepends=('kernel26-headers')
12 provides=('rt73-k2wrlz')
13 conflicts=('rt73-k2wrlz')
14 install=rt73.install
15 source=(http://homepages.tu-darmstadt.de/~p_larbig/wlan/$pkgname-$pkgver.tar.bz2
16                 Makefile.diff
17                 use_sema_init.diff
18                 rtmp_main.diff
19                 rt_config_big_smp_lock.diff
20                 3.2_wireless_abi.diff
22 md5sums=('904c1e22c5d635ba24c88e5f92c84941'
23                  '5dfff4d1021d3d802b859f54f09dfc9e'
24                  '673bda97484f219c30c13e472493036a'
25                  '73ab284e841e40e078e384b6cdc80e6f'
26                  '9f83195a7a07d64554d6cfbb388feb04'
27                  '04881f4965a706d570342886cad41bda')
28 _kernver=`uname -r`
30 build() {
31         mv *diff $startdir/src/$pkgname-$pkgver/Module
32         cd $startdir/src/$pkgname-$pkgver/Module
33         
34         patch < Makefile.diff || return 1
35         patch < use_sema_init.diff || return 1
36         patch < rtmp_main.diff || return 1
37         patch < rt_config_big_smp_lock.diff || return 1
38         patch < 3.2_wireless_abi.diff || return 1
39         
40         make || return 1
41         install -Dm644 rt73.ko $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/rt73.ko || return 1