PKGBUILD 1.33 KB
Newer Older
1 2 3
#
# Chakra Packages for Chakra, part of chakra-project.org
#
4
# maintainer abveritas@chakra-project.org
5

6
_extramodules=extramodules-3.7-CHAKRA
philm's avatar
philm committed
7
_kver="$(cat /lib/modules/${_extramodules}/version)"
Manuel Tortosa's avatar
Manuel Tortosa committed
8

philm's avatar
philm committed
9 10
pkgname=ndiswrapper
pkgver=1.57
11
pkgrel=11
philm's avatar
philm committed
12
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-testing."
Jan Mette's avatar
Jan Mette committed
13
license=('GPL')
abveritas's avatar
abveritas committed
14
arch=('x86_64')
Jan Mette's avatar
Jan Mette committed
15 16
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
17
depends=('linux>=3.7' 'linux<3.8')
Phil's avatar
Phil committed
18 19 20
provides=("ndiswrapper-utils=$pkgver")
replaces=('ndiswrapper-utils')
conflicts=('ndiswrapper-utils')
philm's avatar
philm committed
21
makedepends=('linux-headers')
22
source=("http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz"
23
        'linux34.patch' 'linux37.patch')
24
md5sums=('7a401dc540938bf07893c67f418b6152'
25 26
         '46cb26e68de91dc3c650866fc1189c28'
         'd0dc483d2a1dfe59353b373c2c29c499')
Phil's avatar
Phil committed
27

philm's avatar
philm committed
28 29
build() {
  cd "$srcdir/$pkgname-$pkgver"
Phil's avatar
Phil committed
30

31 32
  sed -i "/modinfo/s/s/usr\//" driver/Makefile
  patch -p0 -i "$srcdir/linux34.patch"
33 34
  sed -i "s|/include/linux/version.h|/include/generated/uapi/linux/version.h|g" driver/Makefile
  patch -p1 -i "$srcdir/linux37.patch"
philm's avatar
philm committed
35
  make KVERS=$_kver
Phil's avatar
Phil committed
36 37 38 39 40
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

philm's avatar
philm committed
41 42
  make INST_DIR="lib/modules/$_extramodules" \
    KVERS=$_kver DESTDIR="$pkgdir/" install
Jan Mette's avatar
Jan Mette committed
43

philm's avatar
philm committed
44 45
  gzip "$pkgdir/lib/modules/$_extramodules/$pkgname.ko"
}