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

pkgname=ndiswrapper-lts
3
_pkgname=ndiswrapper
Luca Giambonini's avatar
Luca Giambonini committed
4
pkgver=1.61
Luca Giambonini's avatar
Luca Giambonini committed
5
pkgrel=8
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
url="http://ndiswrapper.sourceforge.net"
Luca Giambonini's avatar
Luca Giambonini committed
10 11
depends=("linux-lts=4.4.152")
makedepends=("linux-lts-headers=4.4.152")
Luca Giambonini's avatar
Luca Giambonini committed
12
_extramodules=extramodules-CHAKRA-LTS
13
source=("http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz")
Luca Giambonini's avatar
Luca Giambonini committed
14
sha1sums=('213854ca8a83f9b5972db8fa873d346124e4bcb5')
Phil's avatar
Phil committed
15

16 17
KERNEL_VERSION=$(</usr/lib/modules/$_extramodules/version)

Luca Giambonini's avatar
Luca Giambonini committed
18 19
prepare() {
  cd "$srcdir/$_pkgname-$pkgver" 
20
  sed -i "/modinfo/s/s/usr\//" driver/Makefile
Luca Giambonini's avatar
Luca Giambonini committed
21 22 23
}

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

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

32 33
  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
34
}