summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24d4d1b948b796314b9bf7ab3c5655c934135a43 (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: Peter Mattern <pmattern at arcor dot de>
# Contributor: Jerome Leclanche <jerome at leclan dot ch>

_pkgname=libsysstat
pkgname=$_pkgname-git
pkgver=0.3.2.5.gf384265
pkgrel=1
pkgdesc='Library to query system statistics (net, resource usage, ...)'
arch=('i686' 'x86_64' 'armv6h')
url='https://github.com/lxde/libsysstat'
license=('LGPL2.1')
depends=('qt5-base')
makedepends=('git' 'cmake' 'lxqt-build-tools-git')
provides=("$_pkgname" "$_pkgname-qt5" "$_pkgname-qt5-git")
conflicts=("$_pkgname" "$_pkgname-qt5" "$_pkgname-qt5-git")
source=("git+https://github.com/lxde/$_pkgname.git")
sha256sums=("SKIP")

pkgver() {
	cd "$srcdir/$_pkgname"
	git describe --always | sed "s/-/./g"
}

build() {
	mkdir -p build
	cd build
	cmake "$srcdir/$_pkgname" \
              -DCMAKE_INSTALL_PREFIX=/usr \
              -DCMAKE_INSTALL_LIBDIR=lib
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}