PKGBUILDs/aur/dkms-8192cu/PKGBUILD

58 lines
1.8 KiB
Bash
Raw Normal View History

# Maintainer: Jan Madaj < madaj.jan@gmail.com >
# Contributor: Christian Hammacher < bmasterc@gmail.com >
pkgname=dkms-8192cu
2013-11-12 16:07:02 +00:00
pkgver=v4.0.2_9000.20130911
pkgrel=1
pkgdesc="Driver for Realtek RTL8188CUS (8188C, 8192C) chipset wireless cards"
arch=('arm')
url="http://www.realtek.com.tw/"
license=('GPL')
depends=('dkms' 'linux-headers')
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"
"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 17:55:40 +00:00
'd409b3b79832eadbed6e15d845de26b7'
2013-11-12 16:07:02 +00:00
'21077239f17639254b74d74daea8655b'
'5f2d28bf3839447bfe762416a89e1a21')
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-11-12 16:07:02 +00:00
patch -p1 -i "$srcdir/fix_310_proc.patch"
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
}