mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
aur/dkms-8188eu to v4.1.4_6773-2
This commit is contained in:
parent
7290931757
commit
b13836ac50
3 changed files with 23 additions and 13 deletions
|
@ -1,13 +1,10 @@
|
|||
# Maintainer: Jan Madaj < madaj.jan@gmail.com >
|
||||
|
||||
#alarm: moonman
|
||||
# -dkms.conf: change ARCH=i386 to ARCH=arm
|
||||
# Maintainer: Oleg Rakhmanov < orakhmanov [at] gmail [dot] com >
|
||||
|
||||
pkgname=dkms-8188eu
|
||||
pkgver=v4.1.4_6773
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Driver for Realtek RTL8188EU chipset wireless cards"
|
||||
arch=('arm')
|
||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
|
||||
url="http://www.realtek.com.tw/"
|
||||
license=('GPL')
|
||||
depends=('dkms' 'linux-headers')
|
||||
|
@ -19,7 +16,7 @@ source=("rtl8188eu.tar.gz::https://github.com/lwfinger/rtl8188eu/tarball/master"
|
|||
"dkms.conf")
|
||||
|
||||
md5sums=( 'SKIP'
|
||||
'fc32543ad16a503466411663561a87f9')
|
||||
'7fc48c25a0eeee98bfc6b5ffcec25926')
|
||||
|
||||
|
||||
|
||||
|
@ -32,10 +29,15 @@ package() {
|
|||
|
||||
install -dm755 "$installDir"
|
||||
install -m644 "$srcdir/dkms.conf" "$installDir"
|
||||
|
||||
|
||||
#If building for arm, change architecture in dkms.conf
|
||||
if [ "$CARCH" == "arm" -o "$CARCH" == "armv6h" -o "$CARCH" == "armv7h" ]; then
|
||||
sed -i 's/ARCH\=i386/ARCH\=arm/g' ${installDir}/dkms.conf
|
||||
fi
|
||||
|
||||
cd "${srcdir}/rtl8188eu-master/"
|
||||
|
||||
msg2 "Disabling Power Savings Mode"
|
||||
msg2 "Disabling Power Savings Mode"
|
||||
sed -i 's/^CONFIG_POWER_SAVING\ =\ y/CONFIG_POWER_SAVING\ =\ n/' Makefile
|
||||
|
||||
for d in `find . -type d`
|
||||
|
@ -47,7 +49,11 @@ package() {
|
|||
do
|
||||
install -m644 "${srcdir}/rtl8188eu-master/$f" "$installDir/$f"
|
||||
done
|
||||
|
||||
|
||||
# Change firmware directory from rtlwifi to 8188eu so it doesn't
|
||||
# clash with in-tree rtlwifi driver (if available)
|
||||
sed -i 's/rtlwifi\/rtl8188eufw.bin/8188eu\/rtl8188eufw.bin/g' ${installDir}/hal/rtl8188e_hal_init.c
|
||||
|
||||
mkdir -p ${pkgdr}/lib/firmware/8188eu
|
||||
cp -n rtl8188eufw.bin ${pkgdr}/lib/firmware/8188eu/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
post_install (){
|
||||
echo ""
|
||||
echo "If your kernel is >= 3.12 and comes with"
|
||||
echo "rtlwifi driver you will have to blacklist"
|
||||
echo "rtlwifi for this driver to work"
|
||||
|
||||
MODULE="8188eu"
|
||||
DKMS=$(which dkms)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
PACKAGE_NAME="8188eu"
|
||||
PACKAGE_VERSION="v4.1.4_6773"
|
||||
MAKE[0]="CONFIG_RTL8188EU=m make ARCH=arm CROSS_COMPILE= -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build modules"
|
||||
MAKE[0]="CONFIG_RTL8188EU=m make ARCH=i386 CROSS_COMPILE= -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build modules"
|
||||
BUILT_MODULE_NAME[0]="8188eu"
|
||||
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
|
||||
AUTOINSTALL="yes"
|
||||
|
|
Loading…
Reference in a new issue