updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rr232x / PKGBUILD
blob43cc4d7a40699edf5f11dda44b923dc055702b85
1 # Contributor: jshantih <jshantih@gmail.com> 
3 pkgname=rr232x
4 pkgver=1.10
5 pkgrel=1
6 pkgdesc="Kernel module for Highpoint RocketRAID 232x SATA cards"
7 arch=('i686' 'x86_64')
8 url="http://www.highpoint-tech.com/USA/bios_rr2320.htm"
9 license=('custom')
10 groups=()
11 depends=('kernel26>=2.6.31')
12 makedepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=rr232x.install
19 source=("http://www.support-highpoint-tech.com/Main/rr232x/Linux/opensrc/rr232x-linux-src-v$pkgver-090716-0928.tar.gz")
20 md5sums=('ff93a9237ce6c95bc0b44aaf267f01fc')
21 noextract=()
23 _kernver=2.6.31-ARCH
25 build() {
26     mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/scsi/
27     #patch -p0 < rr232x-2.6.30.patch
28     cd $startdir/src/rr232x-linux-src-v$pkgver/product/rr232x/linux/
30     KERNELDIR=/lib/modules/${_kernver}/build make || return 1
32     # Install the kernel module
33     install -m 644 -D rr232x.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/scsi/
35     mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
36     cp $startdir/src/rr232x-linux-src-v$pkgver/README $startdir/pkg/usr/share/licenses/$pkgname/