# Template file for 'lumina-git'
pkgname=lumina-git
version=20141007
revision=1
wrksrc=lumina
hostmakedepends="qt-qmake git"
makedepends="qt-devel libXrender-devel libXcomposite-devel phonon-devel libXdamage-devel"
depends="fluxbox numlockx xbacklight alsa-utils acpi xscreensaver oxygen-icons"
short_desc="Lumina Desktop Environment"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="https://github.com/pcbsd/lumina"

do_fetch() {
	git clone git://github.com/pcbsd/lumina.git
}

do_configure() {
	sed -i s/lrelease-qt4/lrelease/ */*.pro
	qmake PREFIX=/usr "QMAKE_CXXFLAGS+=-I/usr/include/KDE"
}

do_install() {
	make INSTALL_ROOT=${DESTDIR} install
	vlicense LICENSE
}

lumina-git-devel_package() {
        depends="${sourcepkg}>=${version}_${revision}"
        short_desc+=" -- development files"
        pkg_install() {
                vmove usr/include
                vmove "usr/lib/*.so"
        }
}