updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / rt5370 / PKGBUILD
blob672b6137848613154817b06156308c14f3394bb3
1 #Contributor Aeternus Atterratio <atterratio(AT)gmail.com>
2 pkgname=rt5370
3 pkgver=2.5.0.3
4 pkgrel=4
5 pkgdesc="Drivers for rt5370 chipset wireless cards(e.c. D-Link DWA-125 A3)"
6 arch=('i686' 'x86_64')
7 url="http://www.mediatek.com/en/Products/support.php?sn=501"
8 depends=('linux')
9 makedepends=('linux-headers')
10 conflicts=('rt2870')
11 license='unknown'
12 install=install.rt5370
13 md5sums=('f83689a5120f772d47983d7c5658ae6c' 'e0638077a5e8e58ce888feae9d352174')
14 prefix='2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V'
15 postfix='_DPO'
16 source=("http://dl.dropbox.com/u/21827288/${prefix}${pkgver}${postfix}.bz2" "strange.patch")
18 build() {
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
26   
27   #Chenge some strange in Makefile
29   patch -Np2 < ${srcdir}/strange.patch
31   make
33 package() {
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