1 # Maintainer: Alessandro Sagratini <ale_sagra at hotmail dot com>
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."
7 url="http://www.highpoint-tech.com/USA_new/series_rr620.htm"
12 makedepends=('linux-headers')
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)
22 md5sums=('fd41c24e6e2beb86af86ff975b128c8d' 'b96f51f73edf509564f02f96c3ee62be' '9bfb6492fdddcb822b6f94350a231188')
23 _extramodules=extramodules-3.2-ARCH
24 _kernver=`cat /lib/modules/${_extramodules}/version`
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/