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-3
This commit is contained in:
parent
654418e005
commit
f70c9bf138
1 changed files with 14 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname=dkms-8188eu
|
pkgname=dkms-8188eu
|
||||||
pkgver=v4.1.4_6773
|
pkgver=v4.1.4_6773
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Driver for Realtek RTL8188EU chipset wireless cards"
|
pkgdesc="Driver for Realtek RTL8188EU chipset wireless cards"
|
||||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
|
||||||
url="http://www.realtek.com.tw/"
|
url="http://www.realtek.com.tw/"
|
||||||
|
@ -28,12 +28,6 @@ package() {
|
||||||
installDir="$pkgdir/usr/src/${_pkgname}-${pkgver}"
|
installDir="$pkgdir/usr/src/${_pkgname}-${pkgver}"
|
||||||
|
|
||||||
install -dm755 "$installDir"
|
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/"
|
cd "${srcdir}/rtl8188eu-master/"
|
||||||
|
|
||||||
|
@ -49,11 +43,21 @@ package() {
|
||||||
do
|
do
|
||||||
install -m644 "${srcdir}/rtl8188eu-master/$f" "$installDir/$f"
|
install -m644 "${srcdir}/rtl8188eu-master/$f" "$installDir/$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Remove existing dkms.conf that comes from git
|
||||||
|
rm $installDir/dkms.conf
|
||||||
|
# Install our dkms.conf
|
||||||
|
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
|
||||||
|
|
||||||
# Change firmware directory from rtlwifi to 8188eu so it doesn't
|
# Change firmware directory from rtlwifi to 8188eu so it doesn't
|
||||||
# clash with in-tree rtlwifi driver (if available)
|
# clash with in-tree rtlwifi driver (if available)
|
||||||
sed -i 's/rtlwifi\/rtl8188eufw.bin/8188eu\/rtl8188eufw.bin/g' ${installDir}/hal/rtl8188e_hal_init.c
|
sed -i 's/rtlwifi\/rtl8188eufw.bin/8188eu\/rtl8188eufw.bin/g' ${installDir}/hal/rtl8188e_hal_init.c
|
||||||
|
|
||||||
mkdir -p ${pkgdir}/lib/firmware/8188eu
|
mkdir -p ${pkgdir}/usr/lib/firmware/8188eu
|
||||||
cp -n rtl8188eufw.bin ${pkgdir}/lib/firmware/8188eu/
|
cp -n rtl8188eufw.bin ${pkgdir}/usr/lib/firmware/8188eu/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue