mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
ndiswrapper-lts rebuild for 3.0.35, complete new way for PKGBUILD
This commit is contained in:
parent
41d32b01bb
commit
35c8cd211f
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user