1 #Contributor Aeternus Atterratio <atterratio(AT)gmail.com>
5 pkgdesc="Drivers for rt5370 chipset wireless cards(e.c. D-Link DWA-125 A3)"
7 url="http://www.mediatek.com/en/Products/support.php?sn=501"
9 makedepends=('linux-headers')
12 install=install.rt5370
13 md5sums=('f83689a5120f772d47983d7c5658ae6c' 'e0638077a5e8e58ce888feae9d352174')
14 prefix='2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V'
16 source=("http://dl.dropbox.com/u/21827288/${prefix}${pkgver}${postfix}.bz2" "strange.patch")
20 cd ${srcdir}/${prefix}${pkgver}${postfix}
22 #configure for being controlled by NetworkManager or wpa_supplicant wext functions
24 sed "s#HAS_WPA_SUPPLICANT=n#HAS_WPA_SUPPLICANT=y#" -i os/linux/config.mk
25 sed "s#HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n#HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y#" -i os/linux/config.mk
27 #Chenge some strange in Makefile
29 patch -Np2 < ${srcdir}/strange.patch
35 cd ${srcdir}/${prefix}${pkgver}${postfix}
37 install -D -m 755 os/linux/rt5370sta.ko ${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt5370sta.ko
38 install -D -m 644 RT2870STA.dat ${pkgdir}/etc/Wireless/RT2870STA/RT2870STA.dat