PKGBUILDs/aur/dkms-8192cu/PKGBUILD

52 lines
1.6 KiB
Bash
Raw Normal View History

2013-11-12 16:07:02 +00:00
# Creater: Runnytu < runnytu at gmail.com >
# Maintainer: Christian Hammacher < bmasterc@gmail.com >
pkgname=dkms-8192cu
2013-11-12 16:07:02 +00:00
pkgver=v4.0.2_9000.20130911
pkgrel=1
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"
2013-11-12 16:07:02 +00:00
source=("https://www.dropbox.com/s/61askvmgh6iyh6p/rtl8188C_8192C_usb_linux_$pkgver.tar.gz"
"dkms-8192cu.install"
"fix_310_proc.patch"
"dkms.conf"
"blacklist-dkms-8192cu.conf")
md5sums=('efb71a576f781c3d15531511aac2c5c9'
'82db3ab6573dbe2ede43e49ac35259cb'
'5b764e13afd1ccad5bb14bd4d9633604'
'21077239f17639254b74d74daea8655b'
'5f2d28bf3839447bfe762416a89e1a21')
package() {
2013-11-12 16:07:02 +00:00
installDir="$pkgdir/usr/src/$_pkgname-$pkgver"
install -dm755 "$installDir"
install -m644 "$srcdir/dkms.conf" "$installDir/dkms.conf"
install -dm755 "$pkgdir/etc/modprobe.d"
install -m644 "$srcdir/blacklist-dkms-8192cu.conf" "$pkgdir/etc/modprobe.d/blacklist-dkms-8192cu.conf"
cd "${srcdir}/rtl8188C_8192C_usb_linux_${pkgver}/"
2013-11-12 16:07:02 +00:00
patch -p1 -i "$srcdir/fix_310_proc.patch"
for d in `find . -type d`
do
install -dm755 "$installDir/$d"
done
for f in `find . -type f`
do
install -m644 "${srcdir}/rtl8188C_8192C_usb_linux_${pkgver}/$f" "$installDir/$f"
done
}