2014-03-02 12:48:03 +00:00
|
|
|
# Maintainer: Oleg Rakhmanov < orakhmanov [at] gmail [dot] com >
|
2013-06-03 05:54:10 +00:00
|
|
|
|
|
|
|
pkgname=dkms-8188eu
|
|
|
|
pkgver=v4.1.4_6773
|
2014-03-02 12:48:03 +00:00
|
|
|
pkgrel=2
|
2013-06-03 05:54:10 +00:00
|
|
|
pkgdesc="Driver for Realtek RTL8188EU chipset wireless cards"
|
2014-03-02 12:48:03 +00:00
|
|
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
|
2013-06-03 05:54:10 +00:00
|
|
|
url="http://www.realtek.com.tw/"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('dkms' 'linux-headers')
|
|
|
|
conflicts=()
|
|
|
|
install=${pkgname}.install
|
|
|
|
options=(!strip)
|
|
|
|
_pkgname="8188eu"
|
|
|
|
source=("rtl8188eu.tar.gz::https://github.com/lwfinger/rtl8188eu/tarball/master"
|
|
|
|
"dkms.conf")
|
|
|
|
|
|
|
|
md5sums=( 'SKIP'
|
2014-03-02 12:48:03 +00:00
|
|
|
'7fc48c25a0eeee98bfc6b5ffcec25926')
|
2013-06-03 05:54:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
|
|
|
#Change github commit id in folder name to master
|
|
|
|
mv ${srcdir}/lwfinger-rtl8188eu-* ${srcdir}/rtl8188eu-master
|
|
|
|
|
|
|
|
installDir="$pkgdir/usr/src/${_pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
install -dm755 "$installDir"
|
|
|
|
install -m644 "$srcdir/dkms.conf" "$installDir"
|
2014-03-02 12:48:03 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2013-06-03 05:54:10 +00:00
|
|
|
cd "${srcdir}/rtl8188eu-master/"
|
|
|
|
|
2014-03-02 12:48:03 +00:00
|
|
|
msg2 "Disabling Power Savings Mode"
|
2013-06-03 05:54:10 +00:00
|
|
|
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}/rtl8188eu-master/$f" "$installDir/$f"
|
|
|
|
done
|
2014-03-02 12:48:03 +00:00
|
|
|
|
|
|
|
# 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
|
2013-06-03 05:54:10 +00:00
|
|
|
|
2014-03-02 12:58:01 +00:00
|
|
|
mkdir -p ${pkgdir}/lib/firmware/8188eu
|
|
|
|
cp -n rtl8188eufw.bin ${pkgdir}/lib/firmware/8188eu/
|
2014-03-02 12:48:03 +00:00
|
|
|
}
|