blob: 605b0310bda75e5927a61e6cd538b7902425f4f8 (
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
30
31
32
33
|
# $Id: PKGBUILD 22503 2008-12-26 22:53:05Z tpowa $
# Maintainer: James Rayner <iphitus@gmail.com>
pkgname=rt2500
_kernver=2.6.28-LinHES
pkgver=1.1.0_B4
_pkgver=1.1.0-b4
pkgrel=28
pkgdesc="Drivers for rt2500 chipset wireless cards"
url="http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page"
license=('GPL2')
depends=('kernel26>=2.6.28' 'kernel26<2.6.29')
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
kernel-2.6.27.patch)
md5sums=('83b8b9a091705c08d99268479f3b3b6a'
'a74f8e9cbba7b29620f11fba8fd7c50d'
'ccf0da667cc6642dacf39dea1aac254f'
'ccb923f4ebf408e781544d7cf4074bf2')
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
patch -Np1 -i ../kernel-2.6.27.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
}
|