Added prebuild() to bash/PKGBUILD
[Archlinux-Stable.git] / support / rt2500 / PKGBUILD
blob576133e29b6631226878eb46a46882eea49d1729
1 # $Id: PKGBUILD,v 1.15 2007/11/26 16:21:14 tpowa Exp $
2 # Maintainer: James Rayner <iphitus@gmail.com>
4 pkgname=rt2500
5 _kernver=2.6.23-ARCH
6 pkgver=1.1.0_B4
7 _pkgver=1.1.0-b4
8 pkgrel=18
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 \
15         kernel-2.6.22.patch)
16 md5sums=('83b8b9a091705c08d99268479f3b3b6a' 'a74f8e9cbba7b29620f11fba8fd7c50d')
18 build() {
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