summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b51d50a1f0b891d84a5ba63f1a440ec74f9502b (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: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=hp-health
pkgver=10.50_1826.40
pkgrel=1
pkgdesc="HP System Health Application and Command line Utility Package"
arch=(i686 x86_64)
url="http://downloads.linux.hpe.com/SDR/downloads/mcp"
depends=(bash dmidecode pciutils)
groups=(hpproliant)
license=("CUSTOM")

_i686ver=10.50_1826.39

source=(hpasmd.service
        hpasrd.service)
source_i686=("http://downloads.linux.hpe.com/SDR/repo/mcp/centos/6/i686/current/$pkgname-${_i686ver//_/-}.rhel6.i686.rpm")
source_x86_64=("http://downloads.linux.hpe.com/SDR/repo/mcp/centos/7/x86_64/current/$pkgname-${pkgver//_/-}.rhel7.x86_64.rpm")

sha256sums=('6db979dcc293bb4e73593e19e467c45a3f66bdab7df395ccb63218926aeb6050'
            '78913f4ab8230eafad68d9bfc69075ce81ccf06e7b77864f4a0aa73226d2cc90')
sha256sums_i686=('1e5636248204c1f2ed5f396cfd11f8ee09adbb9aad18412563b3d0664ed48729')
sha256sums_x86_64=('6cbc6d1bcef29bcfd770c98080dbefab8ff23e4f136b1c7517a8f6c42b2eeba4')

package() {
	cd "$srcdir"
	cp -a opt usr var "$pkgdir"
	cp -a sbin "$pkgdir"/usr/bin

	cd "$pkgdir"/usr
	if [ -d lib64 ]; then
		mv lib64/* lib
		rm -rf lib64
	fi

	install -Dm644 "$srcdir"/hpasmd.service lib/systemd/system/hpasmd.service
	install -Dm644 "$srcdir"/hpasrd.service lib/systemd/system/hpasrd.service
}