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)"
pkgname=ndiswrapper-lts
_pkgname=ndiswrapper
pkgver=1.57
pkgrel=4
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-testing."
......@@ -21,13 +22,15 @@ source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pk
md5sums=('7a401dc540938bf07893c67f418b6152')
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