contrib/ndiswrapper/Pkgfile

24 lines
826 B
Plaintext
Raw Normal View History

2008-01-11 15:57:19 +01:00
# Description: With ndiswrapper, most miniPCI (builtin), PCI, PCMCIA (Cardbus only) or USB wireless network cards work in Linux with x86 or x86-64.
# URL: http://ndiswrapper.sourceforge.net/joomla/
2008-03-26 03:45:31 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
2008-01-11 15:57:19 +01:00
# Packager: Antonio SJ Musumeci, bile at landofbile dot com
name=ndiswrapper
2008-05-29 04:49:15 +02:00
version=1.53
2008-01-11 15:57:19 +01:00
release=1
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz
ndiswrapper-1.53-linux_2.6.27.patch)
2008-01-11 15:57:19 +01:00
build() {
cd $name-$version
patch -p 1 -i $SRC/ndiswrapper-1.53-linux_2.6.27.patch
sed -i -e "s|CFLAGS = -g -Wall -I\$(DRIVER_DIR)|CFLAGS = $CFLAGS -Wall -I\$(DRIVER_DIR)|" \
utils/Makefile
local kernel_path="/usr/src/linux-$(uname -r)"
2008-05-29 04:49:15 +02:00
make KBUILD="$kernel_path" EXTRA_CFLAGS="$CFLAGS"
make KBUILD="$kernel_path" DESTDIR=$PKG install
2008-01-11 15:57:19 +01:00
}