core/ndiswrapper-lts/PKGBUILD

36 lines
1020 B
Bash
Raw Normal View History

2011-02-26 04:12:50 +08:00
pkgname=ndiswrapper-lts
_pkgname=ndiswrapper
2016-11-07 01:25:16 +08:00
pkgver=1.61
2018-08-19 19:20:58 +08:00
pkgrel=6
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-lts."
2011-02-26 04:12:50 +08:00
license=('GPL')
arch=('x86_64')
2011-02-26 04:12:50 +08:00
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
depends=("linux-lts=4.4.147")
2018-08-19 19:20:58 +08:00
makedepends=("linux-lts-headers=4.4.147")
source=("http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz")
2016-11-07 01:25:16 +08:00
sha1sums=('213854ca8a83f9b5972db8fa873d346124e4bcb5')
2011-02-26 04:12:50 +08:00
KERNEL_VERSION=$(</usr/lib/modules/$_extramodules/version)
prepare() {
cd "$srcdir/$_pkgname-$pkgver"
#patch -p1 -i ../ndiswrapper-1.59.patch
sed -i "/modinfo/s/s/usr\//" driver/Makefile
}
build() {
cd ndiswrapper-$pkgver
make -C driver KVERS_UNAME=${KERNEL_VERSION}
make -C utils
}
package() {
cd ndiswrapper-$pkgver
2012-02-21 02:26:21 +08:00
make sbindir=usr/sbin usrsbindir=usr/bin KBUILD="/usr/lib/modules/$KERNEL_VERSION/build/" INST_DIR="usr/lib/modules/$_extramodules" \
KVERS=$KERNEL_VERSION DESTDIR="$pkgdir/" install
}