summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c304555f03f43181557d437b2d8ad4bf795b430b (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
# Maintainer of this PKBGUILD file: Martino Pilia <martino.pilia@gmail.com>
pkgname=sigar-git
_pkgname=sigar
pkgver=sigar.1.6.4.r600.ga6c61edf
pkgrel=1
pkgdesc="System Information Gatherer And Reporter"
arch=('x86_64')
url="https://github.com/hyperic/sigar"
license=('apache')
depends=()
makedepends=('cmake')
source=("git+https://github.com/boundary/sigar.git")
sha512sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "$srcdir/$_pkgname"

	./autogen.sh
	./configure --prefix="$pkgdir/usr"
}

build() {
	cd "$srcdir/$_pkgname"
    make
}

package() {
	cd "$srcdir/$_pkgname"
	make install
}