# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-stopwatch-plugin
pkgver=0.5.2
pkgrel=0
pkgdesc="Stopwatch plugin for the Xfce panel"
url="https://gitlab.xfce.org/panel-plugins/xfce4-stopwatch-plugin"
arch="all"
license="BSD-2-Clause"
makedepends="xfce4-panel-dev libxfce4ui-dev gtk+3.0-dev"
options="!check" # no testsuite
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-stopwatch-plugin/${pkgver%.*}/xfce4-stopwatch-plugin-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

sha512sums="
8c8120c1b3801c780d8a30293d1c8fb92cf57c5dee323b0d41fbba7c108a78231337815ba0548a0ae78be89a35ea1b6184c49d4013de0185b1e7075aaf5fbc26  xfce4-stopwatch-plugin-0.5.2.tar.bz2
"
