# Template file for 'i3'
pkgname=i3
version=4.4
revision=3
subpackages="${pkgname}-devel"
short_desc="Improved tiling window manager."
maintainer="davehome <davehome@redthumb.info.tm>"
license="BSD"
homepage="http://i3wm.org/"
distfiles="${homepage}/downloads/${pkgname}-${version}.tar.bz2"
checksum=99875749eab6d6f5a3058f3325532cd223a9fa22771a54c2fd06c0ded97f481b
long_desc="
 i3 is a tiling window manager, completely written from scratch. The target
 platforms are GNU/Linux and BSD operating systems, our code is Free and Open
 Source Software (FOSS) under the BSD license. i3 is primarily targeted at
 advanced users and developers."

depends="i3status rxvt-unicode dmenu"
makedepends="which perl pkg-config pcre-devel>=8.30 yajl-devel libxcb-devel
 libev-devel flex asciidoc xmlto docbook-xml libXcursor-devel libX11-devel
 xcb-util-devel>=0.3.9 xcb-util-keysyms-devel>=0.3.9 xcb-util-wm-devel>=0.3.9
 startup-notification-devel>=0.12_3 pango-devel cairo-devel"

conf_files="/etc/i3/config /etc/i3/config.keycodes"

do_build() {
	make ${makejobs} && make ${makejobs} -C man
}

do_install() {
	make DESTDIR=${DESTDIR} install
	vmkdir usr/share/man/man1
	install -m644 man/*.1 ${DESTDIR}/usr/share/man/man1
}
