# Maintainer: Hakan Erduman <hakan@erduman.de>
pkgname=xfce4-hamster-plugin
pkgver=1.17
pkgrel=0
pkgdesc="Recreation of the gnome-shell hamster extension as a xfce4 panel plugin."
url="https://github.com/projecthamster/xfce4-hamster-plugin"
arch="all"
license="GPL-2.0-or-later"
options="!check" # No test suite
makedepends="
	cmake
	libxfce4ui-dev
	libxfce4util-dev
	samurai
	xfce4-panel-dev
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/projecthamster/xfce4-hamster-plugin/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=MinSizeRel
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
2bdde6638502f726613c06d19cfd2b82324454fc64232562ceb3582796d7937b6883dd3c9933e415ee242d79b082309c2ede86366e066104fce2a322164ce101  xfce4-hamster-plugin-1.17.tar.gz
"
