PKGBUILD 1.17 KB
Newer Older
Neophytos's avatar
Neophytos committed
1
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
Phil's avatar
Phil committed
2

3 4
# Source global configuration
source ../linux-lts.conf
Phil's avatar
Phil committed
5 6

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

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

build() {
  cd "$srcdir/$_pkgname-$pkgver"        
  make -C driver KVERS_UNAME=${_kver}
  make -C utils
philm's avatar
philm committed
30 31 32
}

package() {
almack's avatar
almack committed
33
  cd "$srcdir/$_pkgname-$pkgver"   
Phil's avatar
Phil committed
34

almack's avatar
almack committed
35
  make sbindir=usr/sbin usrsbindir=usr/bin KBUILD=${_rootOfSourceTree} INST_DIR="usr/lib/modules/$_extramodules" \
AlmAck's avatar
AlmAck committed
36
        KVERS=$_kver DESTDIR="$pkgdir/" install
Phil's avatar
Phil committed
37

AlmAck's avatar
AlmAck committed
38 39
  sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" \
          "${startdir}/ndiswrapper.install"
40
}