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

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

  make KVERS=$_kver
philm's avatar
philm committed
27 28 29
}

package() {
Phil's avatar
Phil committed
30 31 32 33
  cd "$srcdir/ndiswrapper-$pkgver"

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

Phil's avatar
Phil committed
35 36 37
  # rm ndiswrapper
  rm -R "$pkgdir/usr" "$pkgdir/sbin"

Phil's avatar
Phil committed
38 39 40
  gzip "$pkgdir/lib/modules/$_extramodules/ndiswrapper.ko"
  sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" ${startdir}/*.install
}