2013-11-12 17:25:35 +00:00
|
|
|
# Maintainer: Jan Madaj < madaj.jan@gmail.com >
|
|
|
|
# Contributor: Christian Hammacher < bmasterc@gmail.com >
|
2013-04-15 03:31:30 +00:00
|
|
|
|
|
|
|
pkgname=dkms-8192cu
|
2013-11-12 16:07:02 +00:00
|
|
|
pkgver=v4.0.2_9000.20130911
|
|
|
|
pkgrel=1
|
2013-04-15 03:31:30 +00:00
|
|
|
pkgdesc="Driver for Realtek RTL8188CUS (8188C, 8192C) chipset wireless cards"
|
|
|
|
arch=('arm')
|
|
|
|
url="http://www.realtek.com.tw/"
|
|
|
|
license=('GPL')
|
2013-04-15 04:17:38 +00:00
|
|
|
depends=('dkms' 'linux-headers')
|
2013-04-15 03:31:30 +00:00
|
|
|
conflicts=("8192cu" "rt8192cu")
|
|
|
|
install=${pkgname}.install
|
|
|
|
options=(!strip)
|
|
|
|
_pkgname="8192cu"
|
2013-11-12 16:07:02 +00:00
|
|
|
source=("https://www.dropbox.com/s/61askvmgh6iyh6p/rtl8188C_8192C_usb_linux_$pkgver.tar.gz"
|
|
|
|
"dkms-8192cu.install"
|
|
|
|
"fix_310_proc.patch"
|
2013-11-12 17:25:35 +00:00
|
|
|
"add_missing_ids_netgear_dlink.patch"
|
2013-11-12 16:07:02 +00:00
|
|
|
"dkms.conf"
|
|
|
|
"blacklist-dkms-8192cu.conf")
|
|
|
|
|
|
|
|
md5sums=('efb71a576f781c3d15531511aac2c5c9'
|
|
|
|
'82db3ab6573dbe2ede43e49ac35259cb'
|
|
|
|
'5b764e13afd1ccad5bb14bd4d9633604'
|
2013-11-12 18:17:16 +00:00
|
|
|
'cf582713c3a65eaff137feb22d93b61c'
|
2013-11-12 16:07:02 +00:00
|
|
|
'21077239f17639254b74d74daea8655b'
|
|
|
|
'5f2d28bf3839447bfe762416a89e1a21')
|
2013-04-15 03:31:30 +00:00
|
|
|
|
|
|
|
package() {
|
2013-11-12 16:07:02 +00:00
|
|
|
|
|
|
|
installDir="$pkgdir/usr/src/$_pkgname-$pkgver"
|
|
|
|
|
|
|
|
install -dm755 "$installDir"
|
|
|
|
install -m644 "$srcdir/dkms.conf" "$installDir/dkms.conf"
|
|
|
|
install -dm755 "$pkgdir/etc/modprobe.d"
|
|
|
|
install -m644 "$srcdir/blacklist-dkms-8192cu.conf" "$pkgdir/etc/modprobe.d/blacklist-dkms-8192cu.conf"
|
|
|
|
|
|
|
|
cd "${srcdir}/rtl8188C_8192C_usb_linux_${pkgver}/"
|
2013-06-03 06:36:42 +00:00
|
|
|
|
2013-11-12 16:07:02 +00:00
|
|
|
patch -p1 -i "$srcdir/fix_310_proc.patch"
|
2013-11-12 17:25:35 +00:00
|
|
|
patch -p1 -i "$srcdir/add_missing_ids_netgear_dlink.patch"
|
|
|
|
|
2013-11-12 17:55:40 +00:00
|
|
|
# Disable power saving
|
|
|
|
sed -i 's/^CONFIG_POWER_SAVING \= y/CONFIG_POWER_SAVING = n/' Makefile
|
|
|
|
|
2013-11-12 16:07:02 +00:00
|
|
|
for d in `find . -type d`
|
|
|
|
do
|
|
|
|
install -dm755 "$installDir/$d"
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in `find . -type f`
|
|
|
|
do
|
|
|
|
install -m644 "${srcdir}/rtl8188C_8192C_usb_linux_${pkgver}/$f" "$installDir/$f"
|
|
|
|
done
|
|
|
|
|
2013-04-15 03:31:30 +00:00
|
|
|
}
|