PKGBUILD 1020 Bytes
Newer Older
Phil's avatar
Phil committed
1 2

pkgname=ndiswrapper-lts
3
_pkgname=ndiswrapper
almack's avatar
almack committed
4
pkgver=1.61
AlmAck's avatar
AlmAck committed
5
pkgrel=6
6
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-lts."
Phil's avatar
Phil committed
7
license=('GPL')
8
arch=('x86_64')
Phil's avatar
Phil committed
9 10
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
AlmAck's avatar
AlmAck committed
11
depends=("linux-lts=4.4.147")
AlmAck's avatar
AlmAck committed
12
makedepends=("linux-lts-headers=4.4.147")
13
source=("http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz")
almack's avatar
almack committed
14
sha1sums=('213854ca8a83f9b5972db8fa873d346124e4bcb5')
Phil's avatar
Phil committed
15

AlmAck's avatar
AlmAck committed
16 17
KERNEL_VERSION=$(</usr/lib/modules/$_extramodules/version)

AlmAck's avatar
AlmAck committed
18 19
prepare() {
  cd "$srcdir/$_pkgname-$pkgver" 
20
  #patch -p1 -i ../ndiswrapper-1.59.patch
21
  sed -i "/modinfo/s/s/usr\//" driver/Makefile
AlmAck's avatar
AlmAck committed
22 23 24
}

build() {
AlmAck's avatar
AlmAck committed
25 26
  cd ndiswrapper-$pkgver
  make -C driver KVERS_UNAME=${KERNEL_VERSION}
AlmAck's avatar
AlmAck committed
27
  make -C utils
philm's avatar
philm committed
28 29 30
}

package() {
AlmAck's avatar
AlmAck committed
31
  cd ndiswrapper-$pkgver
Phil's avatar
Phil committed
32

AlmAck's avatar
AlmAck committed
33 34
  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
35
}