summaryrefslogblamecommitdiff
path: root/user/libstatgrab/APKBUILD
blob: 45a2bc72d46a902370b71673853247f8ef9e53d8 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                         
                   
           



                                                                 
                                


                         
                                                              
                                       
                                                                               

         
                                                      





                                         
                                   



            



                  


                                      
                                                                                                                                                                      
# 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() {
	LIBS="-lutmps -lskarnet -ltinfo" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-man-build
	make
}

check() {
	make check
}

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

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