diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | fix.patch | 12 |
3 files changed, 22 insertions, 9 deletions
@@ -10,7 +10,9 @@ pkgbase = rtl8192eu makedepends = git depends = dkms source = git+https://github.com/Mange/rtl8192eu-linux-driver.git#commit=a322c84595b526fc27b979109998188b4ff8042e - md5sums = SKIP + source = fix.patch + sha256sums = SKIP + sha256sums = 582f8e8f8bd513b598ada3a1ac625f188fbf313cddf018a440ca4cd8aaf9964c pkgname = rtl8192eu @@ -8,21 +8,20 @@ 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#commit=a322c84595b526fc27b979109998188b4ff8042e") +source=("git+https://github.com/Mange/rtl8192eu-linux-driver.git#commit=a322c84595b526fc27b979109998188b4ff8042e" "fix.patch") +sha256sums=("SKIP" "582f8e8f8bd513b598ada3a1ac625f188fbf313cddf018a440ca4cd8aaf9964c") install=${pkgname}.install -md5sums=('SKIP') build() { - cd "rtl8192eu-linux-driver" - make + make -j`cat /proc/cpuinfo |grep "processor"|wc -l` } prepare(){ - cd "rtl8192eu-linux-driver" - sed -i '1341i\ install -d $(MODDESTDIR)' Makefile - sed -i 's/$(MODDESTDIR)/$(DESTDIR)$(MODDESTDIR)/g' Makefile + cd "rtl8192eu-linux-driver" + patch Makefile<../fix.patch } package() { + mkdir -p $pkgdir/usr/lib/modules/`uname -r`/kernel/drivers/net/wireless cd "rtl8192eu-linux-driver" - make DESTDIR="$pkgdir/usr/" install + make DESTDIR="$pkgdir/usr" install } diff --git a/fix.patch b/fix.patch new file mode 100644 index 000000000000..4caa5522b3fc --- /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 |