2016-12-10 07:31:21 +00:00
|
|
|
# Maintainer: Runnytu < runnytu at gmail dot com >
|
2013-04-15 03:31:30 +00:00
|
|
|
|
|
|
|
pkgname=dkms-8192cu
|
2016-12-10 07:31:21 +00:00
|
|
|
epoch=1
|
|
|
|
pkgver=v4.0.2_9000
|
|
|
|
pkgrel=1
|
2013-04-15 03:31:30 +00:00
|
|
|
pkgdesc="Driver for Realtek RTL8188CUS (8188C, 8192C) chipset wireless cards"
|
2016-12-10 07:31:21 +00:00
|
|
|
arch=('any')
|
2013-04-15 03:31:30 +00:00
|
|
|
url="http://www.realtek.com.tw/"
|
|
|
|
license=('GPL')
|
2016-12-10 07:31:21 +00:00
|
|
|
depends=('dkms')
|
2013-04-15 03:31:30 +00:00
|
|
|
conflicts=("8192cu" "rt8192cu")
|
|
|
|
options=(!strip)
|
|
|
|
_pkgname="8192cu"
|
2016-12-10 07:31:21 +00:00
|
|
|
source=("https://dl.dropboxusercontent.com/u/54784933/$_pkgname-$pkgver.tar.gz"
|
2013-11-12 16:07:02 +00:00
|
|
|
"dkms.conf"
|
2016-12-10 07:31:21 +00:00
|
|
|
"blacklist-dkms-8192cu.conf"
|
|
|
|
"fix_310_proc2.patch"
|
|
|
|
"NoDebug.patch"
|
|
|
|
"N150MA.patch"
|
|
|
|
"ISY.patch"
|
|
|
|
"D-link.patch"
|
|
|
|
"HWNUM-300V2.patch"
|
|
|
|
"RTL8192CU-kernel-4.0.patch"
|
|
|
|
"RTL8192CU-kernel-4.6.patch")
|
|
|
|
sha256sums=('f4b83e4a363985fdd313531b2e5688d739d2b6df45c8f50d4d3568489db95a5e'
|
|
|
|
'84d59e26884bbe28fae92901e088911692f4aac8ce2fa88b3f45d76bc7e63f01'
|
|
|
|
'c535e5f1990142355587c212e90e3fc2f1d16540eaafbc7fb7fa54581d70ff37'
|
|
|
|
'976394ef3ee5d29023e8c1f3b56b17a6171bf42b6987256c1cda632db4bb19a4'
|
|
|
|
'9220833471c1a64e69cb53ec7d2c6872857e5c1ae396bfa4a6522e60711961cc'
|
|
|
|
'5cf2242e253e1a86d7d4481e87d354f591462f50f37e06ba229c344ebe114eac'
|
|
|
|
'a8098039d910a6e16dbc6fe770551edb108fe784f65e9fd8edd930851e993388'
|
|
|
|
'0170cab166bc3a4775099402ceea245a84500741afb23bd9572f40958c6e7b40'
|
|
|
|
'0c87129f7a0bfb718de0962b1515eda5cf91cfc8b0a9c0e2c25df111552f4a99'
|
|
|
|
'63c4188d620ad613562a00b635167e4762d5dc3ca909ebc3709cca433d34ffd8'
|
|
|
|
'f88b3669a938514cb084493a2635ac250087fb08be7cc2690d60b47e5d213bcb')
|
2013-04-15 03:31:30 +00:00
|
|
|
|
|
|
|
package() {
|
2013-11-12 16:07:02 +00:00
|
|
|
|
|
|
|
installDir="$pkgdir/usr/src/$_pkgname-$pkgver"
|
|
|
|
|
|
|
|
install -dm755 "$installDir"
|
2016-12-10 07:31:21 +00:00
|
|
|
install -m644 "$srcdir/dkms.conf" "$installDir"
|
2013-11-12 16:07:02 +00:00
|
|
|
install -dm755 "$pkgdir/etc/modprobe.d"
|
2016-12-10 07:31:21 +00:00
|
|
|
install -m644 "$srcdir/blacklist-dkms-8192cu.conf" "$pkgdir/etc/modprobe.d/blacklist-8192cu-dkms.conf"
|
2013-11-12 16:07:02 +00:00
|
|
|
|
2016-12-10 07:31:21 +00:00
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}/"
|
2013-06-03 06:36:42 +00:00
|
|
|
|
2016-12-10 07:31:21 +00:00
|
|
|
patch -p1 -i "$srcdir/fix_310_proc2.patch"
|
|
|
|
patch -p1 -i "$srcdir/N150MA.patch"
|
|
|
|
patch -p1 -i "$srcdir/NoDebug.patch"
|
|
|
|
patch -p1 -i "$srcdir/ISY.patch"
|
|
|
|
patch -p1 -i "$srcdir/D-link.patch"
|
|
|
|
patch -p1 -i "$srcdir/HWNUM-300V2.patch"
|
|
|
|
patch -p1 -i "$srcdir/RTL8192CU-kernel-4.0.patch"
|
|
|
|
patch -p1 -i "$srcdir/RTL8192CU-kernel-4.6.patch"
|
2013-11-12 17:25:35 +00:00
|
|
|
|
2013-11-12 17:55:40 +00:00
|
|
|
# Disable power saving
|
|
|
|
sed -i 's/^CONFIG_POWER_SAVING \= y/CONFIG_POWER_SAVING = n/' Makefile
|
|
|
|
|
2013-11-12 16:07:02 +00:00
|
|
|
for d in `find . -type d`
|
|
|
|
do
|
|
|
|
install -dm755 "$installDir/$d"
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in `find . -type f`
|
|
|
|
do
|
2016-12-10 07:31:21 +00:00
|
|
|
install -m644 "${srcdir}/${_pkgname}-${pkgver}/$f" "$installDir/$f"
|
2013-11-12 16:07:02 +00:00
|
|
|
done
|
|
|
|
|
2013-04-15 03:31:30 +00:00
|
|
|
}
|