# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=unclutter-xfixes
pkgver=1.2
pkgrel=0
url="https://github.com/Airblader/${pkgname}"
arch="all"
license="MIT"
pkgdesc="Hides mouse pointer while not in use"
makedepends="libxfixes-dev libev-dev libxi-dev asciidoc"
subpackages="${pkgname}-doc"
_myver="${pkgname}-${pkgver}"
source="${_myver}.tar.gz::https://github.com/Airblader/${pkgname}/archive/v${pkgver}.tar.gz"
builddir="${srcdir}/${pkgname}-${pkgver}"

build() {
	cd "${builddir}"
	make
}

check() {
	cd "${builddir}"
	./unclutter -v
}

package() {
	cd "${builddir}"
	install -D -m755 "${builddir}/unclutter" "${pkgdir}/usr/bin/${pkgname}"
	install -D -m444 "${builddir}/man/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}

sha512sums="59df9e0dcf917f83b11ce85ba3d7445234ed6e63fc060d5158a9278821fc01c7b0f1f1178ad41e6307d7e0e8dd0ae850dc8bb7a613949deb10496535058fe5e9  unclutter-xfixes-1.2.tar.gz"
