updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / rt2870usb / PKGBUILD
blob82ad968c7633e760952add54815c8805a53f7f85
1 # Contributor: _AND_ <and@ebrilo.jp>
2 license=('unknown')
3 arch=('i686')
4 pkgname=rt2870usb
5 pkgver=2.2.0.0
6 pkgrel=1
7 pkgdesc="Kernel module and firmware for RaLink RT2870USB (RT2870/RT2770) WiFi adapter"
8 url=http://web.ralinktech.com/ralink/Home/Support/Linux.html
9 depends=('kernel26')
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')
13 build() {
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
17   make || return 1
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/