aboutsummaryrefslogtreecommitdiffstats
path: root/main/sysstat/APKBUILD
blob: e159ca6adc0745958e8e7d5b08fae99803915741 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sysstat
pkgver=11.1.3
pkgrel=0
pkgdesc="Performance monitoring tools for Linux"
url="http://pagesperso-orange.fr/sebastien.godard/"
arch="all"
license="GPL"
depends=
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="http://pagesperso-orange.fr/sebastien.godard/sysstat-$pkgver.tar.xz
	musl-fix-includes.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-nls \
		|| return 1
	make || return 1
}

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

}

md5sums="27385bcb6c1e585de8ba7cb25ac67aef  sysstat-11.1.3.tar.xz
64b8fd8367562adc796aaa5d9b92bcc2  musl-fix-includes.patch"
sha256sums="ddbd07dfac47bcf0a6c2ae503bd80ad84dbed80c939d3dd333eb8453c38c337b  sysstat-11.1.3.tar.xz
80ba68b5c1cbdeb4fb6e6cd07f1ae32043126602b3c2b0864aefeb5523a3d7d5  musl-fix-includes.patch"
sha512sums="96581e31ebd2065ca8f767ec2d9ba362cba707996adda0e0d1f81ff5f77a4709f37f91ae6c4d4e480e9ec8ac63b613c2a2e9249b87df5b4c589e4ce9cf4cc1f8  sysstat-11.1.3.tar.xz
183ff89a3a0c3923b436991a2653a133942525b5f45d842ee6ed3546166211cf12828e07dc4ded2d4af8451f049ae75a87fc903a6297791034d6b304c6ef0faf  musl-fix-includes.patch"