# Template file for 'bspwm'
pkgname=bspwm
version=0.8.9
revision=3
build_style=gnu-makefile
hostmakedepends="git"
makedepends="libxcb-devel xcb-util-devel xcb-util-wm-devel"
short_desc="A tiling window manager based on binary space partitioning"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="https://github.com/baskerville/bspwm"

do_fetch() {
	local url="git://github.com/baskerville/bspwm"
	msg_normal "Fetching source from $url ...\n"
	git clone -b${version} ${url} ${pkgname}-${version}
}

post_install() {
	vlicense LICENSE
	vinstall contrib/bash_completion 644 usr/share/bash-completion/completions bspc
	vinstall contrib/zsh_completion 644 usr/share/zsh/site-functions _bspc
}
