# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-xkb-plugin
pkgver=0.8.3
_maj=${pkgver%%.*}
_min=${pkgver#$_maj.}
_min=${_min%%.*}
_ver=$_maj.$_min
pkgrel=1
pkgdesc="plugin to switch keyboard layouts for the Xfce4 panel"
url="https://goodies.xfce.org/projects/panel-plugins/xfce4-xkb-plugin"
arch="all"
license="custom"
makedepends="
	bzip2-dev
	e2fsprogs-dev
	garcon-dev
	intltool
	libgsf-dev
	librsvg-dev
	libsm-dev
	libwnck3-dev
	libxfce4ui-dev
	libxi-dev
	libxkbfile-dev
	libxklavier-dev
	xfce4-panel-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-xkb-plugin/$_ver/xfce4-xkb-plugin-$pkgver.tar.bz2"
options="!check" # No test suite

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

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="
02ae82a1e01b7cc54154545c6ff42a450a81ba44697620ebb716a663300ea08fbf6ccafc5fd4d710791f142e1c249f17b613d90ffd99025ad97dfa0230ee55b2  xfce4-xkb-plugin-0.8.3.tar.bz2
"
