summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: efbefe0f65e3890abf45749fae13b150cf826b64 (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
# Maintainer: Fermín Olaiz <ferminolaiz@gmail.com>

pkgname=hpsahba-git
pkgver=r41.0a57a52
pkgrel=3
pkgdesc="Tool to enable/disable HBA mode on some HP Smart Array controllers"
arch=('x86_64')
url="https://github.com/im-0/hpsahba"
license=('GPL-2.0')
depends=()
makedepends=(git pandoc)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+${url}.git#branch=master")
sha256sums=(SKIP)

pkgver() {
	cd "${srcdir}/${pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
	cd "${srcdir}/${pkgname}"
	make
	gzip hpsahba.8
}

package() {
	cd "${srcdir}/${pkgname}"
	echo $pkgdir $srcdir
	install -D hpsahba -t "${pkgdir}/usr/bin/"
	install -D hpsahba.8.gz -t "${pkgdir}/usr/share/man/man8/"
}