# Contributor: Daniele Debernardi <drebrez@gmail.com>
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
pkgname=matchbox-keyboard
pkgver=0.1.1
pkgrel=2
pkgdesc="An on screen virtual keyboard"
url="https://www.yoctoproject.org/software-item/matchbox/"
arch="all"
license="GPL-2.0-only"
makedepends="
	autoconf
	automake
	cairo-dev
	gtk+3.0-dev
	libfakekey-dev
	libtool
	libx11-dev
	libxft-dev
	libxrender-dev
	libxtst-dev
	"
source="http://git.yoctoproject.org/cgit/cgit.cgi/matchbox-keyboard/snapshot/matchbox-keyboard-$pkgver.tar.gz"
options="!check" # No test suite present

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--prefix=/usr \
		--enable-cairo \
		--disable-gtk-im \
		--enable-gtk3-im \
		LDFLAGS="$LDFLAGS -lXrender -lX11"
	make
}

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

sha512sums="
f04648888d1eccf42a42929da9a1d8973c0d1a64558a10a4b0053ac591aec274d495ced116643df3605c2eab24ad7fadf1f7d801317a5b0cb3e7a052b706a0e2  matchbox-keyboard-0.1.1.tar.gz
"
