updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / carl9170-driver / PKGBUILD
blobeccb91af89b20cfccdb4c4b39abb6eaf0bbbd21e
1 # Maintainer: Marius L. Meyer <marius.l.meyer at gmail dot com>
3 pkgname=carl9170-driver
4 pkgver=2011_05_14
5 _reldate="2011-05-14"
6 pkgrel=2
7 pkgdesc="A new WiFi driver for Atheros based USB dongles"
8 arch=('i686' 'x86_64')
9 url="http://wireless.kernel.org/en/users/Drivers/carl9170"
10 license=('GPL2')
11 depends=('carl9170-fw')
12 makedepends=('linux-api-headers' 'linux-headers')
13 optdepends=(
14             'wireless-regdb'
15             'crda'
16             'iw'
17             'rfkill')
19 options=()
20 install=$pkgname.install
21 source=(http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-$_reldate.tar.bz2)
22 md5sums=('58a675845c430d3a0e43f036e4520386')
24 build() {
25   cd compat-wireless-$_reldate
26   ./scripts/driver-select carl9170
27   make
30 package() {
31   kernver=$(uname -r)
32   mkdir -p $pkgdir/lib/modules/$kernver/updates/drivers/net/wireless/ath/carl9170
33   mkdir -p $pkgdir/lib/modules/$kernver/updates/{compat,net/{mac80211,wireless}}
34   cd compat-wireless-$_reldate
35   make KMODPATH_ARG="INSTALL_MOD_PATH=$pkgdir" install-modules