summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Zhang2019-12-05 09:17:45 +0800
committerBruce Zhang2019-12-05 09:17:45 +0800
commit166b41ec936d2e6967e7db31894ed5c725a32011 (patch)
tree7f64c968f26b8413300d75640a86c74e9cdb5de4
downloadaur-166b41ec936d2e6967e7db31894ed5c725a32011.tar.gz
Initial upload: rtl88x2ce-dkms 5.7.3_35403-1
update
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD36
-rw-r--r--dkms.conf9
-rw-r--r--rtw88_blacklist.conf2
5 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bae47467c2b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = rtl88x2ce-dkms
+ pkgdesc = Realtek RTL88x2CE Driver (DKMS)
+ pkgver = 5.7.3_35403
+ pkgrel = 1
+ url = https://github.com/alanfox2000/realtek-linux/blob/master/RTL8822CE
+ arch = x86_64
+ arch = i686
+ license = unknown
+ depends = dkms
+ optdepends = linux-headers
+ optdepends = linux-zen-headers
+ provides = rtl88x2ce
+ source = rtl88x2ce-dkms-5.7.3_35403.src.7z::https://github.com/alanfox2000/realtek-linux/blob/master/RTL8822CE/RTL8822CE_WiFi_linux_v5.7.3_35403_COEX20190531-0e0e.20191028.7z?raw=true
+ source = dkms.conf
+ source = rtw88_blacklist.conf
+ sha1sums = a798b10d4f2c962c246f2c1bc695314e2b15e7b3
+ sha1sums = 2e10c6cfc44d93d95c231c78ed2b05c463649ed5
+ sha1sums = 18ecc64076501d396a2fabf4f1f31d3d1945b874
+
+pkgname = rtl88x2ce-dkms
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..9c0011bfae7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.src.7z
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7efe5f8286b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Bruce Zhang
+pkgname=rtl88x2ce-dkms
+_name=rtl88x2ce
+pkgver=5.7.3_35403
+_allver="${pkgver}_COEX20190531-0e0e.20191028"
+_dver="${pkgver}.20191028_COEX20190531-0e0e"
+pkgrel=1
+pkgdesc="Realtek RTL88x2CE Driver (DKMS)"
+arch=('x86_64' 'i686')
+url="https://github.com/alanfox2000/realtek-linux/blob/master/RTL8822CE"
+license=('unknown')
+depends=('dkms')
+optdepends=('linux-headers' 'linux-zen-headers')
+provides=('rtl88x2ce')
+source=(
+ "$pkgname-$pkgver.src.7z::https://github.com/alanfox2000/realtek-linux/blob/master/RTL8822CE/RTL8822CE_WiFi_linux_v$_allver.7z?raw=true"
+ dkms.conf
+ rtw88_blacklist.conf
+)
+sha1sums=('a798b10d4f2c962c246f2c1bc695314e2b15e7b3'
+ '2e10c6cfc44d93d95c231c78ed2b05c463649ed5'
+ '18ecc64076501d396a2fabf4f1f31d3d1945b874')
+
+prepare() {
+ cd "$srcdir/RTL8822CE_WiFi_linux_v$_allver/driver"
+ tar zxf "rtl88x2CE_WiFi_linux_v$_dver.tar.gz"
+}
+
+package() {
+ cd "$srcdir/RTL8822CE_WiFi_linux_v$_allver/driver/rtl88x2CE_WiFi_linux_v$_dver"
+ mkdir -p "$pkgdir/usr/src/$_name-$pkgver"
+ cp -pr * "$pkgdir/usr/src/$_name-$pkgver"
+ install -Dm644 "$srcdir/dkms.conf" "$pkgdir/usr/src/$_name-$pkgver/dkms.conf"
+ install -Dm644 "$srcdir/rtw88_blacklist.conf" "$pkgdir/usr/lib/modprobe.d/rtw88_blacklist.conf"
+ sed -e "s/#MODULE_VERSION#/$pkgver/" -i "$pkgdir/usr/src/$_name-$pkgver/dkms.conf"
+}
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..05a7d2664c1
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,9 @@
+PACKAGE_NAME="rtl88x2ce"
+PACKAGE_VERSION="#MODULE_VERSION#"
+PROCS_NUM=$(nproc)
+[ $PROCS_NUM -gt 16 ] && PROCS_NUM=16
+MAKE="'make' -j${PROCS_NUM} KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build"
+CLEAN="make clean"
+BUILT_MODULE_NAME[0]="88x2ce"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
+AUTOINSTALL="yes"
diff --git a/rtw88_blacklist.conf b/rtw88_blacklist.conf
new file mode 100644
index 00000000000..b73cb07cf9d
--- /dev/null
+++ b/rtw88_blacklist.conf
@@ -0,0 +1,2 @@
+blacklist rtw88
+blacklist rtwpci