summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 216bfea2485d8ee39174e84fb83bb144ea7e71da (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
34
35
36
37
38
# Maintainer: brent s. <bts[at]square-r00t[dot]net>

pkgname=storcli
pkgver=1.15.12
pkgrel=3
pkgdesc="CLI program for LSI MegaRAID cards, also works with some Dell PERC RAID cards (successor to megaraid-cli)"
arch=('i686' 'x86_64')
url="https://www.thomas-krenn.com/en/wiki/StorCLI"
license=('unknown')
if [[ "${CARCH}" == 'x86_64' ]];
then
  _arch='amd64'
  _bits='64'
elif [[ "${CARCH}" == 'i686' ]];
then
  _arch='i386'
  _bits=''
fi
source=("http://archive.thomas-krenn.com/packages/pool/optional/s/storcli/storcli_${pkgver}_${_arch}.deb")
if [[ "${_arch}" == "amd64" ]];
then
  md5sums=('a899d70f8f8d106db70c7188a9edeae7')
elif [[ "${_arch}" == "i386" ]];
then
  md5sums=('031e910733b7861749d27968a7d452de')
fi
provides=('storcli')
conflicts=('megaraid-cli')

package() {
	cd ${srcdir}
	ar x ${pkgname}_${pkgver}_${_arch}.deb
	tar -zxf data.tar.gz

	install -D -m755 "${srcdir}/usr/sbin/storcli${_bits}" "${pkgdir}/usr/bin/storcli"

}