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

This commit is contained in:
abveritas 2012-06-18 19:15:15 +00:00
parent 41d32b01bb
commit 35c8cd211f

View File

@ -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"
}