blob: 67798b60d532fa1b5e341ae2e5af1f149a2d5b8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $
# Maintainer: James Rayner <iphitus@gmail.com>
pkgname=rt2500
_kernver=2.6.26-ARCH
pkgver=1.1.0_B4
_pkgver=1.1.0-b4
pkgrel=24
pkgdesc="Drivers for rt2500 chipset wireless cards"
url="http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page"
license=('GPL2')
depends=('kernel26>=2.6.26-1' 'kernel26<2.6.27')
arch=('i686' 'x86_64')
install=rt2500.install
source=(http://downloads.sourceforge.net/sourceforge/rt2400/rt2500-${_pkgver}.tar.gz \
kernel-2.6.22.patch kernel-2.6.24.patch)
md5sums=('83b8b9a091705c08d99268479f3b3b6a'
'a74f8e9cbba7b29620f11fba8fd7c50d'
'ccf0da667cc6642dacf39dea1aac254f')
build() {
cd $startdir/src/rt2500-$_pkgver/
patch -Np1 -i ../kernel-2.6.22.patch || return 1
patch -Np1 -i ../kernel-2.6.24.patch || return 1
cd $startdir/src/rt2500-$_pkgver/Module
make KERNDIR=/lib/modules/$_kernver/build || return 1
install -D -m 644 rt2500.ko $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/rt2500.ko
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}
|