updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / rt2x00-git / PKGBUILD
bloba1502026378b7e11c5ce4081a7aaacb25af040da
1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Maintainer: Aljosha Papsch <papsch.al@gmail.com>
3 _pkgname=rt2x00
4 pkgname=rt2x00-git
5 pkgver=20110828
6 pkgrel=2
7 pkgdesc="A free, stable and feature rich wireless driver for rt2400, rt2500, rt2570, rt61, rt73"
8 arch=('i686' 'x86_64')
9 conflicts=('linux-firmware')
10 url="http://rt2x00.serialmonkey.com/"
11 license=('GPL' 'custom:EULA')
12 source=('Makefile')
13 sha256sums=('53159e1d3f251541b08d9a3712059743e61f15ee5d029fe563c976856ef32466')
14 _driverdir="${srcdir}/${_pkgname}/drivers/net/wireless/rt2x00"
16 build() {
17   if [ -d ${srcdir}/${_pkgname} ]; then
18     cd ${srcdir}/${_pkgname}
19     git fetch
20     cd ${srcdir}/linux-firmware
21     git fetch
22   else
23     git clone git://git.kernel.org/pub/scm/linux/kernel/git/ivd/${_pkgname}.git ${_pkgname}
24     git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git linux-firmware
25   fi
26   cd ${srcdir}/${_pkgname}
28   cp ${srcdir}/Makefile ${_driverdir}
29   cd ${_driverdir}
30   make
33 package() {
35   cd ${_driverdir}
37   install -d ${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt2x00
38   install -d ${pkgdir}/lib/firmware
40   install -Dm644 *.ko ${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rt2x00
41   cd ${srcdir}/linux-firmware
42   install -Dm644 rt*.bin ${pkgdir}/lib/firmware
45 # vim:set ts=2 sw=2 et: