updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / rt5390 / PKGBUILD
blobdf3914d9b72e5f89c36d603003606ed2878ee825
1 # Maintainer: Sonny Piers <sonny.piers@gmail.com>
2 pkgname=rt5390
3 pkgver=2.5.0.3
4 pkgrel=1
5 pkgdesc='Kernel module for RT5390.'
6 depends=('linux')
7 makedepends=('linux-headers')
8 arch=('x86_64' 'i686')
9 license=('GPL')
10 url=('http://www.ralinktech.com/support.php?s=2')
11 source=(
12 'http://www.ralinktech.com/download.php?t=U0wyRnpjMlYwY3k4eU1ERXhMekE0THpBeEwyUnZkMjVzYjJGa09ETXlOVEUwTlRJek9DNWllakk5UFQweU1ERXhYekEwTURaZlVsUTFNemt3WDFKVU5UTTVNbDlNYVc1MWVGOVRWRUZmVmpJdU5TNHdMak5mUkZCUFgwZFFUQT09Qw=='
13 'https://api.opensuse.org/public/source/driver:wireless/rt5390sta/rt5390sta-2.5.0.3-WPA-mixed.patch'
14 'https://api.opensuse.org/public/source/driver:wireless/rt5390sta/rt5390sta-2.5.0.3-return_nonvoid_function.patch'
15 'https://api.opensuse.org/public/source/driver:wireless/rt5390sta/rt5390sta-2.5.0.3-remove_date_time.patch'
16 'https://api.opensuse.org/public/source/driver:wireless/rt5390sta/rt5390sta-2.5.0.3-remove-potential-conflicts-with-rt2860sta.patch'
17 'https://api.opensuse.org/public/source/driver:wireless/rt5390sta/rt5390sta-2.5.0.3-reduce_debug_output.patch'
18 'https://api.opensuse.org/public/source/driver:wireless/rt5390sta/rt5390sta-2.5.0.3-convert-devicename-to-wlanX.patch'
19 'https://api.opensuse.org/public/source/driver:wireless/rt5390sta/rt5390sta-2.5.0.3-config.patch')
20 install='install.rt5390'
21 md5sums=(
22 'ce3a43ba6f1521d81e498f2351585564'
23 '0e4aa5012a4a1e7829577de392b056ee'
24 '89ee08fd9d97a2c3b2dd8493c6db514a'
25 '3e0ae7f0fd8cb121c1ffa4207c8e7642'
26 'd70b9ee8c1a41f80b5690c75d0131ab9'
27 'b3eeebff0a0aa31bbec6397e4a1fb72a'
28 '750fc403090a7a2293bea9b600b0e579'
29 '5a513bf73bf5f5debe1fd8f2d5457d2a')
32 build() {
33   cd "${srcdir}/2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO"
34   cp RT2860STA.dat RT5390STA.dat
35   patch -p0 < ../rt5390sta-2.5.0.3-WPA-mixed.patch
36   patch -p0 < ../rt5390sta-2.5.0.3-return_nonvoid_function.patch
37   patch -p0 < ../rt5390sta-2.5.0.3-remove_date_time.patch
38   patch -p0 < ../rt5390sta-2.5.0.3-remove-potential-conflicts-with-rt2860sta.patch
39   patch -p0 < ../rt5390sta-2.5.0.3-reduce_debug_output.patch
40   patch -p0 < ../rt5390sta-2.5.0.3-convert-devicename-to-wlanX.patch
41   patch -p0 < ../rt5390sta-2.5.0.3-config.patch
42   make
45 package() {
46         install -D -m 644 ${srcdir}/2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/RT5390STA.dat ${pkgdir}/etc/Wireless/RT5390STA/RT5390STA.dat
47         install -D -m 755 ${srcdir}/2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/rt5390sta.ko ${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt5390sta.ko