summaryrefslogtreecommitdiff
path: root/user/libstatgrab/APKBUILD
blob: 09deb09b95356ba818834dd059668fac662f08ac (plain) (blame)
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
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=libstatgrab
pkgver=0.92
pkgrel=0
pkgdesc="Library for cross-platform access to system statistics."
url="https://www.i-scream.org/libstatgrab"
arch="all"
license="GPL-2.0+ AND LGPL-2.1+"
depends=""
depends_dev="ncurses-dev"
checkdepends="perl"
makedepends="autoconf automake libtool utmps-dev $depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.i-scream.org/pub/i-scream/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	cd "$builddir"
	LIBS="-lutmps -lskarnet -ltinfo" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-man-build
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="a99c6be56d930779d0d8f6f81e64e2f31e19423009c39e925b39116a42aa2c6037651992ac2168c43a5c6ecadf3e4a58486ab6148cf96118c429b04fdcf65192  libstatgrab-0.92.tar.gz"