aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xload/APKBUILD
blob: eb042c197bb877219d85e6002744efe261b25728 (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
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=xload
pkgver="1.1.2"
pkgrel=0
pkgdesc="System load average display for X"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
depends="libintl"
makedepends="libx11-dev libxaw-dev libxmu-dev libxt-dev gettext-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/archive/individual/app/${pkgname}-${pkgver}.tar.bz2"
options="!check"

build() {
	export CFLAGS="$CFLAGS -DRLOADSTUB"
	export LIBS="$LIBS -lintl"
	cd "$builddir"
	 ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls
	make
}

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

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

sha512sums="9c83d26bbb135cc0f2b3ef7f25b081cda5d080dd02b1c89195b40825a7d71211965b34336c853eb455472d9748f3edf64108455584b34b81673e2548806f423d  xload-1.1.2.tar.bz2"