1 # $Id: PKGBUILD,v 1.15 2007/11/26 16:21:14 tpowa Exp $
2 # Maintainer: James Rayner <iphitus@gmail.com>
9 pkgdesc="Drivers for rt2500 chipset wireless cards"
10 url="http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page"
11 depends=('kernel26>=2.6.23.8-2')
12 arch=('i686' 'x86_64')
13 install=rt2500.install
14 source=(http://optusnet.dl.sourceforge.net/sourceforge/rt2400/rt2500-${_pkgver}.tar.gz \
16 md5sums=('83b8b9a091705c08d99268479f3b3b6a' 'a74f8e9cbba7b29620f11fba8fd7c50d')
19 cd $startdir/src/rt2500-$_pkgver/
20 patch -Np1 -i ../kernel-2.6.22.patch || return 1
21 cd $startdir/src/rt2500-$_pkgver/Module
22 make KERNDIR=/lib/modules/$_kernver/build
23 install -D -m 644 rt2500.ko $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/rt2500.ko
24 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install