PKGBUILDs/aur/dkms-8188eu/PKGBUILD

54 lines
1.1 KiB
Bash
Raw Normal View History

2013-06-03 05:54:10 +00:00
# Maintainer: Jan Madaj < madaj.jan@gmail.com >
#alarm: moonman
# -dkms.conf: change ARCH=i386 to ARCH=arm
pkgname=dkms-8188eu
pkgver=v4.1.4_6773
pkgrel=1
pkgdesc="Driver for Realtek RTL8188EU chipset wireless cards"
arch=('arm')
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'
'fc32543ad16a503466411663561a87f9')
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"
cd "${srcdir}/rtl8188eu-master/"
msg2 "Disabling Power Savings Mode"
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
}