updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / rt2860 / PKGBUILD
bloba14ba15341fd1bd39dbba79ec86785d92ed90b6e
1 # Maintainter: <jakob.gruber@gmail.com>
2 # Contributor: Marius Dransfeld <marius.dransfeld@gmail.com>
4 pkgname=rt2860
5 pkgver=2.4.0.0
6 pkgrel=2
7 pkgdesc="Drivers for rt2860/2890 chipset wireless cards"
8 arch=('i686' 'x86_64')
9 url="http://www.mediatek.com/en/Products/support.php?sn=501"
10 depends=('linux')
11 makedepends=('linux-headers')
12 license='GPL'
13 install=install.rt2860
15 pkgprefix='2010_07_16_'
17 source=("http://dl.dropbox.com/u/169548/${pkgprefix}RT2860_Linux_STA_v${pkgver}.tar.bz2")
18 md5sums=('b2623a02a006e1b18eea1b9ab58495f0')
20 build() {
22     cd "${srcdir}"/${pkgprefix}RT2860_Linux_STA_v${pkgver}
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     make
29 package() {
30     cd "${srcdir}"/${pkgprefix}RT2860_Linux_STA_v${pkgver}
32     install -D -m755 os/linux/rt2860sta.ko "${pkgdir}"/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt2860sta.ko
33     install -D -m644 RT2860STA.dat "${pkgdir}"/etc/Wireless/RT2860STA/RT2860STA.dat
34     install -D -m644 RT2860STACard.dat "${pkgdir}"/etc/Wireless/RT2860STA/RT2860STACard.dat