# Maintainer: Erich Eckner # Contributor: Massimiliano Torromeo pkgname=ssacli pkgver=5.10_44.0 pkgrel=17 pkgdesc="HP Command Line Smart Storage Administrator" arch=(x86_64) url="https://downloads.linux.hpe.com/SDR/downloads/mcp" _pinned_dependencies=( 'gcc-libs=14.2.1+r32+geccf707e5ce' 'glibc>=2.31' ) depends=(bash "${_pinned_dependencies[@]}") replaces=(hpacucli hpssacli) groups=(hpproliant) license=("CUSTOM") source_x86_64=("https://downloads.linux.hpe.com/SDR/repo/mcp/centos/8/${CARCH}/current/$pkgname-${pkgver//_/-}.${CARCH}.rpm") source=('ssacli.conf') sha512sums=('32cf56d9d40bb537273d27ad73afe1af30c283cd13bd4bc57df96ebd6538e8f8d55d352895e40e33a35c16c245da46071707fcf3d676387d72f20a22e9ecf50d') sha512sums_x86_64=('9d8ab77ae528d5a13c295f751083228ff5fc9b20544070de243f1d5e070c6d42ea143e2ba58e3e25461838818a37bfb5715391fd75bed5334e49f42cfc4c30f6') package() { mv usr/{sbin,bin} mv usr/{,share/}man install -Dm644 opt/smartstorageadmin/ssacli/bin/ssacli.license "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt install -Dm644 "$srcdir/ssacli.conf" "$pkgdir/usr/lib/modules-load.d/ssacli.conf" rm opt/smartstorageadmin/ssacli/bin/ssacli.license cp -a opt usr "$pkgdir" }