# Contributor: Robert Hencke <robert.hencke@gmail.com>
# Maintainer: Jakko <jahau@rocketmail.com>
pkgname=xfce4-genmon-plugin
pkgver=4.2.1
pkgrel=0
pkgdesc="A generic, script-driven monitoring plugin for the Xfce panel"
url="https://docs.xfce.org/panel-plugins/xfce4-genmon-plugin"
arch="all"
license="LGPL-2.1-or-later"
makedepends="xfce4-panel-dev libxfce4ui-dev"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-genmon-plugin/${pkgver%.*}/xfce4-genmon-plugin-$pkgver.tar.bz2"

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

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

sha512sums="
c961462b67fcf001147d7a930bc443cceaa0e4b52ac511a38885072e995b21e5a1e047ea1ed9f30399c73d4f4bc8feda88e1b19a94cd7ce3ae272153c4767af9  xfce4-genmon-plugin-4.2.1.tar.bz2
"
