updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / megaraid-cli / PKGBUILD
blobe060829e29e4692c3471a06e54bb75abd460414b
1 # Maintainer: Kyle Sexton <ks@mocker.org>
3 pkgname=megaraid-cli
4 pkgver=8.00.46
5 pkgrel=1
6 pkgdesc="CLI program for LSI MegaRAID cards, also works with some Dell PERC RAID cards."
7 arch=('i686' 'x86_64')
8 url="http://www.lsi.com"
9 license=('custom')
10 depends=()
11 makedepends=('rpmextract' 'unzip')
12 provides=('megaraid-cli')
13 conflicts=('megaraid-cli')
15 _fileroot="http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=56682"
16 _filename="8.00.46_Linux_MegaCLI.zip"
19 build() {
20   cd "$srcdir"
21   msg "Downloading package from LSI...."
23   wget $_fileroot -O $_filename
25   msg "Extracting zip archive"
26   unzip $_filename
28   msg "Extracting zip archive"
29   unzip -o MegaCliLin.zip
31   msg "Extracting files from RPM"
32   rpmextract.sh MegaCli*.rpm
34   install -d $pkgdir/opt/MegaRAID/MegaCli
35   cp $srcdir/opt/MegaRAID/MegaCli/* $pkgdir/opt/MegaRAID/MegaCli