# Template file for 'x2x-git'
pkgname=x2x-git
version=20150531
revision=1
_githash=375bf431aac5675352a16b516d42ed67dd1a3b3c
wrksrc="x2x-${_githash}"
build_style=gnu-configure
hostmakedepends="automake pkg-config"
makedepends="libX11-devel libXext-devel libXtst-devel"
short_desc="Use mouse and keyboard from X display on another"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="https://github.com/dottedmag/x2x"
distfiles="https://github.com/dottedmag/x2x/archive/${_githash}.tar.gz"
checksum=650c1f46b812b2e9beef032d86b20171a8e6d74354f59d1a0163d8a2882749a1

pre_configure() {
	sh bootstrap.sh
}
post_install() {
	vlicense COPYING
	mv $DESTDIR/usr/share/doc/{x2x,$pkgname}
	rm $DESTDIR/usr/share/doc/$pkgname/{ChangeLog*,COPYING*}
}
