# Maintainer: Daniel Fancsali <fancsali@gmail.com>
pkgname=xfce4-systemload-plugin
pkgver=1.3.2
pkgrel=0
pkgdesc="System load plugin for the Xfce Panel"
url="https://goodies.xfce.org/projects/panel-plugins/xfce4-systemload-plugin"
arch="all"
license="BSD-2-Clause"
makedepends="xfce4-panel-dev libxfce4ui-dev"
subpackages="$pkgname-lang"
source="
	https://archive.xfce.org/src/panel-plugins/xfce4-systemload-plugin/${pkgver%.*}/xfce4-systemload-plugin-$pkgver.tar.bz2
	10-wrong-var-type-on-32bit.patch
"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static
	make
}

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

sha512sums="
f432988f439e5fd7ada16b3e6eaa42b3351531ba3e2b63e2570387bf4d7e605ff9d5a97fde3f5f5eb323ff08aaf3c050f161a5768392b80aa99fabaabda82431  xfce4-systemload-plugin-1.3.2.tar.bz2
913a112a49c544d3b2a56e2b24621285e10178d188ee041bd12f62c7395ad3b8131fd951a9a33dc216a3d0322510d7c60daf7cd1c9d3169857fc920baac390c7  10-wrong-var-type-on-32bit.patch
"
