# Template file for 'enlightenment'
pkgname=enlightenment
version=0.17.3
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-pam --disable-device-hal
 --enable-device-udev --disable-mount-hal --enable-mount-udisks
 --enable-mount-eeze --enable-elementary --enable-emotion
 --enable-enotify --disable-ephysics --disable-wayland-clients
 --disable-conf-wallpaper2 --disable-illume2 --disable-physics
 --disable-doc"
homepage="http://enlightenment.org"
short_desc="Enlightenment window manager DR17 (aka e17)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
distfiles="http://download.enlightenment.org/releases/${pkgname}-${version}.tar.bz2"
checksum=0bcf23d4b555a9d7aa9ee727f25fb6ed9ad11580b92e9827fdd5525baf729856

hostmakedepends="pkg-config"
makedepends="alsa-lib-devel pam-devel e_dbus-devel>=1.7.7 edje-devel>=1.7.7
 eeze-devel>=1.7.7 efreet-devel>=1.7.7 elementary-devel>=1.7.7 xcb-util-keysyms-devel
 hicolor-icon-theme desktop-file-utils evas_generic_loaders>=1.7.7"

post_install() {
	vmkdir usr/share/licenses/${pkgname}
	install -m644 COPYING* ${DESTDIR}/usr/share/licenses/${pkgname}
	vinstall ${FILESDIR}/e-applications.menu 644 etc/xdg/menus
	rm -rf ${DESTDIR}/usr/share/${pkgname}/doc
}

enlightenment-devel_package() {
	depends="efreet-devel ecore-devel edje-devel evas-devel
		e_dbus-devel ${sourcepkg}>=${version}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}

enlightenment_package() {
	conf_files="/etc/enlightenment/sysactions.conf"
	provides="notification-daemon-0"
	depends="hicolor-icon-theme desktop-file-utils evas_generic_loaders>=1.7.7"
	pkg_install() {
		vmove all
	}
}
