# Template file for 'awesome'
pkgname=awesome
version=3.5.5
revision=1
build_style=cmake
configure_args="-DSYSCONFDIR=/etc -DLUA_LIBRARY=/usr/lib/liblua.so.5.2"
hostmakedepends="cmake which xmlto asciidoc>=8.6.6 pkg-config"
makedepends="
 libxcb-devel pango-devel xcb-util-devel>=0.3.9 xcb-util-image-devel>=0.3.9
 xcb-util-keysyms-devel>=0.3.9 xcb-util-wm-devel>=0.3.9 xcb-util-cursor-devel>=0.1.0_2
 startup-notification-devel>=0.12_3 imlib2-devel ImageMagick>=6.7.9.6_2 lgi>=0.7.2
 libxdg-basedir-devel>=1.1.1_1 gdk-pixbuf-devel lua-devel>=5.2 dbus-devel"
depends="dbus-x11 lgi>=0.7.2"
conf_files="/etc/xdg/awesome/rc.lua"
short_desc="Highly configurable, next gen framework window manager for X"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://awesome.naquadah.org"
distfiles="${homepage}/download/${pkgname}-${version}.tar.xz"
checksum=bf30dbd7c4621742b2565919404f009588ea482574ddb85aaa5301bce5258d47

pre_configure() {
	# Russian manpages fail to build.
	sed -i -e "s|es fr de ru|es fr de|g" CMakeLists.txt
}

post_install() {
	vinstall awesome.desktop 644 usr/share/xsessions
}
