updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / rtl8192 / PKGBUILD
blob4c19070f499722a49de09b76526d842b02eae31c
1 # Maintainer: Jeff Parent <jecxjo@sdf.lonestar.org>
2 # Contributor: Jeff Parent <jecxjo@sdf.lonestar.org>
4 pkgname=rtl8192
5 pkgver=0004.0816.2011
6 pkgrel=2
7 pkgdesc="Driver for Realtek 8192CE/DE/SE PCI wireless chipsets."
8 license=("GPL")
9 depends=('linux-headers')
10 source=("http://jecxjo.sdf.org/aur/92ce_se_de_linux_mac80211_0004.0816.2011.tar.gz"
11         "wifi.h.patch")
12 arch=('i686' 'x86_64')
13 url="http://www.realtek.com.tw/"
14 install="${pkgname}.install"
15 md5sums=('42b1583c3aa3383995299e58bb787e9c'
16          'cff801688499c4a5d9713679c328faba')
18 build() {
19         cd "${srcdir}"/rtl_92ce_92se_92de_linux_mac80211_${pkgver}
20     patch < "${srcdir}"/wifi.h.patch
21         make
24 package() {
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 {} \;