PKGBUILD 1.38 KB
Newer Older
Phil's avatar
Phil committed
1 2 3 4 5 6
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>

Phil's avatar
Phil committed
7 8 9 10 11 12
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf

# Find the kernel name inside the chroot
_extramodules=extramodules-`pacman -Q linux-lts | cut -c11-13 | sed 's/linux-lts //g'`-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
Phil's avatar
Phil committed
13 14

pkgname=ndiswrapper-lts
philm's avatar
philm committed
15
pkgver=1.57
Phil's avatar
Phil committed
16 17
pkgrel=2
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-testing."
Phil's avatar
Phil committed
18 19 20 21
license=('GPL')
arch=(i686 x86_64)
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
Phil's avatar
Phil committed
22 23 24 25 26
depends=('linux-lts>=3.0' 'linux-lts<3.1')
provides=("ndiswrapper-utils=$pkgver")
replaces=('ndiswrapper-utils')
conflicts=('ndiswrapper-utils')
makedepends=('linux-lts-headers')
philm's avatar
philm committed
27 28
source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz)
md5sums=('7a401dc540938bf07893c67f418b6152')
Phil's avatar
Phil committed
29

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

  make KVERS=$_kver
philm's avatar
philm committed
34 35 36
}

package() {
Phil's avatar
Phil committed
37 38 39 40
  cd "$srcdir/ndiswrapper-$pkgver"

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

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