PKGBUILD 1.08 KB
Newer Older
Phil's avatar
Phil committed
1 2 3
#
# Chakra Packages for Chakra, part of chakra-project.org
#
4
# maintainer abveritas@chakra-project.org
Phil's avatar
Phil committed
5 6

# Find the kernel name inside the chroot
7
_extramodules=extramodules-3.0-lts
Phil's avatar
Phil committed
8
_kver="$(cat /lib/modules/${_extramodules}/version)"
Phil's avatar
Phil committed
9 10

pkgname=ndiswrapper-lts
11
_pkgname=ndiswrapper
philm's avatar
philm committed
12
pkgver=1.57
abveritas's avatar
abveritas committed
13
pkgrel=5
Phil's avatar
Phil committed
14
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-testing."
Phil's avatar
Phil committed
15 16 17 18
license=('GPL')
arch=(i686 x86_64)
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
Phil's avatar
Phil committed
19
depends=('linux-lts>=3.0' 'linux-lts<3.1' 'ndiswrapper')
Phil's avatar
Phil committed
20
makedepends=('linux-lts-headers')
philm's avatar
philm committed
21 22
source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz)
md5sums=('7a401dc540938bf07893c67f418b6152')
Phil's avatar
Phil committed
23

Phil's avatar
Phil committed
24
build() {
25 26 27
  cd "$srcdir/$_pkgname-$pkgver"

  sed -i "/modinfo/s/s/usr\//" driver/Makefile
Phil's avatar
Phil committed
28 29

  make KVERS=$_kver
philm's avatar
philm committed
30 31 32
}

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

  make INST_DIR="lib/modules/$_extramodules" \
    KVERS=$_kver DESTDIR="$pkgdir/" install
Phil's avatar
Phil committed
37

Phil's avatar
Phil committed
38 39 40
  # rm ndiswrapper
  rm -R "$pkgdir/usr" "$pkgdir/sbin"

41
  gzip "$pkgdir/lib/modules/$_extramodules/$_pkgname.ko"
Phil's avatar
Phil committed
42
}