# Template file for 'lumina-git'
pkgname=lumina-git
version=20140912
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
}

pre_configure() {
	for f in debian/patches/*.diff; do
		patch -Np1 <$f
	done
	sed -i s/lrelease-qt4/lrelease/ */*.pro
	sed -i 's|/usr/local/|/usr/|g' */*.cpp */*.desktop */*.h */*/*.h lumina-desktop/fluxboxconf/fluxbox-init-rc
}

do_configure() {
	qmake "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"
        }
}
