# Template file for 'cairo-dock'
pkgname=cairo-dock
version=3.3.2
revision=2
lib32disabled=yes
build_style=cmake
configure_args="-Denable-desktop-manager=ON"
hostmakedepends="cmake pkg-config"
makedepends="libcurl-devel dbus-glib-devel libXtst-devel gtk+3-devel librsvg-devel glu-devel desktop-file-utils"
depends="desktop-file-utils"
short_desc="Light eye-candy fully themable animated dock"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="https://launchpad.net/${pkgname}"
distfiles="http://launchpad.net/${pkgname}-core/${version%.?}/${version}/+download/${pkgname}-${version}.tar.gz"
checksum=a2d3854771d7ef5b262593b37aed216ece7eeacfc3e2a08deb4a797f175f6af8

cairo-dock-devel_package() {
	short_desc+=" - development files"
	depends="libcurl-devel gtk+3-devel librsvg-devel glu-devel dbus-glib-devel libXtst-devel libgldi>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}

libgldi_package() {
	short_desc+=" - OpenGL Desktop Interface"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}
