summaryrefslogtreecommitdiff
path: root/ndiswrapper/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'ndiswrapper/Pkgfile')
-rw-r--r--ndiswrapper/Pkgfile10
1 files changed, 6 insertions, 4 deletions
diff --git a/ndiswrapper/Pkgfile b/ndiswrapper/Pkgfile
index 364aacdeb..a64ab6525 100644
--- a/ndiswrapper/Pkgfile
+++ b/ndiswrapper/Pkgfile
@@ -5,13 +5,15 @@
# Depends on:
name=ndiswrapper
-version=1.51
+version=1.52
release=1
source=(http://dl.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$version.tar.gz)
build() {
- cd ndiswrapper-$version
- make KBUILD=/usr/src/linux-$(uname -r)
- make KBUILD=/usr/src/linux-$(uname -r) DESTDIR=$PKG install
+ cd ndiswrapper-$version
+ sed -i -e "s|CFLAGS = -g -Wall -I\$(DRIVER_DIR)|CFLAGS = $CFLAGS -Wall -I\$(DRIVER_DIR)|" utils/Makefile
+ local kernel="`uname -r`"
+ make KBUILD=/usr/src/linux-$kernel EXTRA_CFLAGS="$CFLAGS"
+ make KBUILD=/usr/src/linux-$kernel DESTDIR=$PKG install
}

Generated by cgit