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

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

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

sha512sums="388298370cd69155a8a11efb2198522fd2757b48861b110998eea38f31ded490d2ba0ee1a715d4a4f76a8e51411e5b3963229938d0be7d44a796e0543b8afa3e  matchbox-keyboard-0.1.1.tar.bz2"
