# Template file for 'i3'
pkgname=i3
version=4.7
revision=1
build_style=gnu-makefile
hostmakedepends="which perl pkg-config asciidoc xmlto"
makedepends="pcre-devel>=8.30 yajl-devel libxcb-devel libev-devel
 pango-devel startup-notification-devel>=0.12_3 xcb-util-devel>=0.3.9
 xcb-util-keysyms-devel>=0.3.9 xcb-util-wm-devel>=0.3.9 xcb-util-cursor-devel"
conf_files="/etc/i3/config /etc/i3/config.keycodes"
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=e29acafdf7c7d3483c13ea80e45b407f62244b355e425c7161fdfc915c9f83c5
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."

post_build() {
	make ${makejobs} -C man
}

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

i3-devel_package() {
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
	}
}
