updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rr62x / PKGBUILD
blobabd8dd55418594619509d7546018cec6516405d5
1 # Maintainer: Alessandro Sagratini <ale_sagra at hotmail dot com>
2 pkgname=rr62x
3 pkgver=1.1
4 pkgrel=7
5 pkgdesc="Kernel modules for Highpoint RocketRAID 62x SATA/6Gbps Card. Patched for use with kernel26 >=2.6.37 and kernel >= 3 (a.k.a. linux). Thanks to Alessandro Sagratini's patches for rr264x driver to help me make this one work again."
6 arch=('i686' 'x86_64')
7 url="http://www.highpoint-tech.com/USA_new/series_rr620.htm"
8 license=('custom')
9 groups=()
11 depends=('linux')
12 makedepends=('linux-headers')
14 provides=()
15 conflicts=()
16 replaces=()
17 backup=()
18 options=()
19 install=$pkgname.install
20 source=(http://www.support-highpoint-tech.com/Main/RR622/Linux/opensrc/rr62x-linux-src-v1.1-091221-1456.tar.gz scsi_lck.patch kernel3.patch)
21 noextract=()
22 md5sums=('fd41c24e6e2beb86af86ff975b128c8d' 'b96f51f73edf509564f02f96c3ee62be' '9bfb6492fdddcb822b6f94350a231188')
23 _extramodules=extramodules-3.2-ARCH
24 _kernver=`cat /lib/modules/${_extramodules}/version`
26 build() {
27     mkdir -p $startdir/pkg/lib/modules/${_extramodules}/
29     cd $startdir/src/rr62x-linux-src-v$pkgver/
30     # Apply the scsi lock patch to make the driver work with kernel > 2.6.37
31     patch -p0 -i $startdir/scsi_lck.patch
32     patch -p0 -i $startdir/kernel3.patch
33     cd product/rr62x/linux/
34     make KERNELDIR=/usr/src/linux-$_kernver || return 1
36     # Install the kernel module
37     install -m 644 -D rr62x.ko "${pkgdir}/lib/modules/${_extramodules}/"
38     gzip "${pkgdir}/lib/modules/${_extramodules}/rr62x.ko"
40     mkdir -p $pkgdir/usr/share/licenses/$pkgname
41     cp $srcdir/rr62x-linux-src-v$pkgver/README $pkgdir/usr/share/licenses/$pkgname/