Commit 35c8cd21 authored by abveritas's avatar abveritas

ndiswrapper-lts rebuild for 3.0.35, complete new way for PKGBUILD

parent 41d32b01
......@@ -8,6 +8,7 @@ _extramodules=extramodules-3.0-lts
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-testing."
......@@ -21,13 +22,15 @@ source=($pk
build() {
cd "$srcdir/ndiswrapper-$pkgver"
cd "$srcdir/$_pkgname-$pkgver"
sed -i "/modinfo/s/s/usr\//" driver/Makefile
make KVERS=$_kver
package() {
cd "$srcdir/ndiswrapper-$pkgver"
cd "$srcdir/$_pkgname-$pkgver"
make INST_DIR="lib/modules/$_extramodules" \
KVERS=$_kver DESTDIR="$pkgdir/" install
......@@ -35,6 +38,5 @@ package() {
# rm ndiswrapper
rm -R "$pkgdir/usr" "$pkgdir/sbin"
gzip "$pkgdir/lib/modules/$_extramodules/ndiswrapper.ko"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" ${startdir}/*.install
gzip "$pkgdir/lib/modules/$_extramodules/$_pkgname.ko"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment