updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rt2870 / PKGBUILD
blob4e555eb8530d88b5d1ffa451cd704f592fec7cff
1 #Contributor Antti Oja <antti.bofh(AT)gmail.com>
2 #Contributor Jakob Gruber <jakob.gruber(AT)kabelnet.at>
3 pkgname=rt2870
4 pkgver=2.4.0.1
5 pkgrel=4
6 pkgdesc="Drivers for rt2870 chipset wireless cards"
7 arch=('i686' 'x86_64')
8 url="http://www.mediatek.com/en/Products/support.php?sn=501"
9 depends=('linux')
10 makedepends=('linux-headers')
11 license='GPL'
12 install=install.rt2870
13 md5sums=('9afbb7c60bcf17a5e8bfad89a4b14e0f' '2964cc3b322f52db822b25be2e77c02d')
14 fileprefix='2010_0709_RT2870_Linux_STA_v'
15 source=("http://dl.dropbox.com/u/169548/${fileprefix}${pkgver}.tar.bz2" "2.6.35.patch")
17 build() {
19   cd ${srcdir}/${fileprefix}${pkgver}
21   #configure for being controlled by NetworkManager or wpa_supplicant wext functions
23   sed "s#HAS_WPA_SUPPLICANT=n#HAS_WPA_SUPPLICANT=y#" -i os/linux/config.mk
24   sed "s#HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n#HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y#" -i os/linux/config.mk
26   #allow compilation on 2.6.35
28   patch -Np2 < ${srcdir}/2.6.35.patch
29   
30   make
32 package() {
34   cd ${srcdir}/${fileprefix}${pkgver}
36   install -D -m 755 os/linux/rt2870sta.ko ${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt2870sta.ko
37   install -D -m 644 RT2870STA.dat ${pkgdir}/etc/Wireless/RT2870STA/RT2870STA.dat
38   install -D -m 644 RT2870STACard.dat ${pkgdir}/etc/Wireless/RT2870STA/RT2870STACard.dat