# Contributor: Eivind Uggedal <eivind@uggedal.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xbanish
pkgver=1.5
pkgrel=0
pkgdesc="Banish the mouse cursor when typing, show it again when the mouse moves"
url="https://github.com/jcs/xbanish"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev libx11-dev libxt-dev libxfixes-dev libxi-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$_builddir"
	make
}

package() {
	cd "$_builddir"

	mkdir -p "$pkgdir"/usr/bin
	mkdir -p "$pkgdir"/usr/share/man/man1
	make \
		PREFIX=/usr \
		DESTDIR="$pkgdir" \
		MANDIR="$pkgdir"/usr/share/man/man1 \
		install
}

sha512sums="bf0bede46ee13e624a3a2ea9d62d2fa97aa18cf11d9185dd3851543929d88437ff35533fd9477a3b54f70c951cc73aa628758b725705780911afbfaa39f2e6e5  xbanish-1.5.tar.gz"
