# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-cpufreq-plugin
pkgver=1.2.9
pkgrel=0
pkgdesc="CPU frequency plugin for the Xfce4 panel"
url="https://docs.xfce.org/panel-plugins/xfce4-cpufreq-plugin/start"
arch="all"
license="GPL-2.0-or-later"
makedepends="xfce4-panel-dev libxfce4ui-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-cpufreq-plugin/${pkgver%.*}/xfce4-cpufreq-plugin-$pkgver.tar.bz2"

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="
e75075c63f22c38b57793b5da9471be7ac49d4e17cb57ab96b04710e50c0b9161de6ea84b49f8142cac3baade1559388e58d50d8096a8e5515916644d7f70ca5  xfce4-cpufreq-plugin-1.2.9.tar.bz2
"
