1 # Contributor: _AND_ <and@ebrilo.jp>
7 pkgdesc="Kernel module and firmware for RaLink RT2870USB (RT2870/RT2770) WiFi adapter"
8 url=http://web.ralinktech.com/ralink/Home/Support/Linux.html
10 source=(http://www.ralinktech.com.tw/data/drivers/2009_0820_RT2870_Linux_STA_V$pkgver.tar.bz2 http://www.ralinktech.com.tw/data/drivers/RT2870_Firmware_V8.zip)
11 md5sums=('33672280af8b3275f17dbb8ecdc29fba' 'a7aae1d8cfd68e4d86a73000df0b6584')
14 cd $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver
15 mv $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/Makefile $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/Makefile.old
16 sed /"tftpboot"/d $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/Makefile.old > $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/Makefile
18 install -d $pkgdir/etc/Wireless/RT2870STA/
19 install -m 644 -c $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/RT2870STA.dat $pkgdir/etc/Wireless/RT2870STA/
20 install -d $pkgdir/lib/firmware
21 install -m 644 -c $srcdir/RT2870_Firmware_V8/rt2870.bin $pkgdir/lib/firmware/
22 install -d $pkgdir/lib/modules/$(uname -r)/kernel/drivers/net/wireless/
23 install -m 644 -c $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/os/linux/rt2870sta.ko $pkgdir/lib/modules/$(uname -r)/kernel/drivers/net/wireless/
24 install -d $pkgdir/usr/share/doc/rt2870usb/
25 install -m 644 -c $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/README_STA $pkgdir/usr/share/doc/rt2870usb/
26 install -m 644 -c $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/*.txt $pkgdir/usr/share/doc/rt2870usb/
27 install -m 644 -c $srcdir/2009_0820_RT2870_Linux_STA_V$pkgver/*.dat $pkgdir/usr/share/doc/rt2870usb/