mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
61 lines
1.6 KiB
Bash
61 lines
1.6 KiB
Bash
# Maintainer: Jan Madaj < madaj.jan@gmail.com >
|
|
|
|
#alarm: moonman
|
|
# -dkms.conf: change ARCH=i386 to ARCH=arm
|
|
# -add missing ids for Netgear WNA1000N & D-Link Alpha (taken from R-Pi kernel)
|
|
|
|
pkgname=dkms-8192cu
|
|
pkgver=v3.4.4_4749
|
|
pkgrel=8
|
|
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"
|
|
source=("https://www.dropbox.com/s/3rrxrg55hmnzr1l/$_pkgname-$pkgver.tar.bz2"
|
|
"dkms.conf"
|
|
"blacklist-dkms-8192cu.conf"
|
|
"use_kthread_run_v2.patch"
|
|
"add_missing_ids_netgear_dlink.patch")
|
|
|
|
|
|
md5sums=('f4291ba24e9ff3408c26606ba9400152'
|
|
'9de2f7a7788689e2bf7680950b4451d9'
|
|
'5f2d28bf3839447bfe762416a89e1a21'
|
|
'7b22f83c62456e4b8310e21b56bb4c2f'
|
|
'a595c7c7ed240e50e8001094c4488a5a')
|
|
|
|
package() {
|
|
|
|
installDir="$pkgdir/usr/src/$_pkgname-$pkgver"
|
|
|
|
install -dm755 "$installDir"
|
|
install -m644 "$srcdir/dkms.conf" "$installDir"
|
|
install -dm755 "$pkgdir/etc/modprobe.d"
|
|
install -m644 "$srcdir/blacklist-dkms-8192cu.conf" "$pkgdir/etc/modprobe.d/blacklist-dkms-8192cu.conf"
|
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}/"
|
|
|
|
patch -p1 -i "$srcdir/use_kthread_run_v2.patch"
|
|
patch -Np1 -i "$srcdir/add_missing_ids_netgear_dlink.patch"
|
|
|
|
#Disable Power Saving
|
|
sed -i 's/^CONFIG_POWER_SAVING\ \ \ =\ y/CONFIG_POWER_SAVING\ =\ n/' Makefile
|
|
|
|
for d in `find . -type d`
|
|
do
|
|
install -dm755 "$installDir/$d"
|
|
done
|
|
|
|
for f in `find . -type f`
|
|
do
|
|
install -m644 "${srcdir}/${_pkgname}-${pkgver}/$f" "$installDir/$f"
|
|
done
|
|
|
|
}
|
|
|
|
|