summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Fordham2017-10-25 19:43:26 +1100
committerChris Fordham2017-10-25 19:43:26 +1100
commit7dfd9a9de5ad9a235ac7d522edca2ee0764dbad6 (patch)
tree8c9d9db9b4f40c20ba1e901246251fe9fbd1030c
downloadaur-7dfd9a9de5ad9a235ac7d522edca2ee0764dbad6.tar.gz
Initial version of package.
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD43
-rw-r--r--fix.patch12
-rw-r--r--rtl8192eu.install4
4 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1cc9e4afe2a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = rtl8192eu-git
+ pkgdesc = Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131).
+ pkgver = 35.0b8394b
+ pkgrel = 1
+ url = https://github.com/Mange/rtl8192eu-linux-driver
+ install = rtl8192eu.install
+ arch = x86_64
+ license = GPL
+ makedepends = linux-headers
+ makedepends = git
+ depends = dkms
+ source = git+https://github.com/Mange/rtl8192eu-linux-driver.git
+ source = fix.patch
+ sha256sums = SKIP
+ sha256sums = 582f8e8f8bd513b598ada3a1ac625f188fbf313cddf018a440ca4cd8aaf9964c
+
+pkgname = rtl8192eu-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6e987ce1fbe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Chris Fordham <chris at fordham-nagy dot id dot au> aka flaccid
+pkgname=rtl8192eu-git
+_pkgname=rtl8192eu
+pkgver=35.0b8394b
+pkgrel=1
+pkgdesc="Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131)."
+arch=("x86_64")
+url="https://github.com/Mange/rtl8192eu-linux-driver"
+license=('GPL')
+depends=("dkms")
+makedepends=('linux-headers' 'git')
+source=("git+https://github.com/Mange/rtl8192eu-linux-driver.git" "fix.patch")
+sha256sums=("SKIP" "582f8e8f8bd513b598ada3a1ac625f188fbf313cddf018a440ca4cd8aaf9964c")
+install="$_pkgname.install"
+
+pkgver() {
+ pushd "$srcdir/$_pkgdir/rtl8192eu-linux-driver" >/dev/null
+ printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ popd > /dev/null
+}
+
+prepare(){
+ pushd "$srcdir/$_pkgdir/rtl8192eu-linux-driver" >/dev/null
+ patch Makefile<../fix.patch
+ if grep -q 'model name.*ARM' /proc/cpuinfo; then
+ sed -i -e 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' -e 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/' Makefile
+ fi
+ popd
+}
+
+build() {
+ pushd 'rtl8192eu-linux-driver' >/dev/null
+ make -j"$(cat /proc/cpuinfo | grep "processor" | wc -l)"
+ popd >/dev/null
+}
+
+package() {
+ pushd 'rtl8192eu-linux-driver' >/dev/null
+ mkdir -p "$pkgdir/usr/lib/modules/`uname -r`/kernel/drivers/net/wireless"
+ make DESTDIR="$pkgdir/usr" install
+ popd >/dev/null
+}
diff --git a/fix.patch b/fix.patch
new file mode 100644
index 00000000000..4caa5522b3f
--- /dev/null
+++ b/fix.patch
@@ -0,0 +1,12 @@
+0a1
+> EXTRA_CFLAGS += --std=gnu90
+1339a1341
+> install -d $(DESTDIR)$(MODDESTDIR)
+1341c1343
+< install -p -m 644 $(MODULE_NAME).ko $(MODDESTDIR)
+---
+> install -D -p -m 644 $(MODULE_NAME).ko $(DESTDIR)$(MODDESTDIR)
+1345c1347
+< rm -f $(MODDESTDIR)/$(MODULE_NAME).ko
+---
+> rm -f $(DESTDIR)$(MODDESTDIR)/$(MODULE_NAME).ko
diff --git a/rtl8192eu.install b/rtl8192eu.install
new file mode 100644
index 00000000000..a4bb5241338
--- /dev/null
+++ b/rtl8192eu.install
@@ -0,0 +1,4 @@
+post_install(){
+ /sbin/depmod -a `uname -r`
+}
+