1 # Maintainer: Jeff Parent <jecxjo@sdf.lonestar.org>
2 # Contributor: Jeff Parent <jecxjo@sdf.lonestar.org>
7 pkgdesc="Driver for Realtek 8192CE/DE/SE PCI wireless chipsets."
9 depends=('linux-headers')
10 source=("http://jecxjo.sdf.org/aur/92ce_se_de_linux_mac80211_0004.0816.2011.tar.gz"
12 arch=('i686' 'x86_64')
13 url="http://www.realtek.com.tw/"
14 install="${pkgname}.install"
15 md5sums=('42b1583c3aa3383995299e58bb787e9c'
16 'cff801688499c4a5d9713679c328faba')
19 cd "${srcdir}"/rtl_92ce_92se_92de_linux_mac80211_${pkgver}
20 patch < "${srcdir}"/wifi.h.patch
25 cd "${srcdir}"/rtl_92ce_92se_92de_linux_mac80211_${pkgver}
26 mkdir -p "${pkgdir}"/lib/firmware
27 cp -rf firmware/rtlwifi "${pkgdir}"/lib/firmware/rtlwifi
28 mkdir -p "${pkgdir}"/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192{c,d,s}e
29 cp -f rtl8192ce/rtl8192ce.ko "${pkgdir}"/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192ce
30 cp -f rtl8192de/rtl8192de.ko "${pkgdir}"/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192de
31 cp -f rtl8192se/rtl8192se.ko "${pkgdir}"/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi/rtl8192se
32 cp -f rtlwifi.ko "${pkgdir}"/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi
33 find "${pkgdir}"/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rtlwifi -name '*.ko' -exec gzip {} \;