# Template file for 'marco'
pkgname=marco
version=1.10.1
revision=2
build_pie=yes
build_style=gnu-configure
configure_args="--disable-static --with-gtk=2.0 --enable-startup-notification --disable-schemas-compile"
hostmakedepends="libtool pkg-config intltool itstool glib-devel gdk-pixbuf-devel zenity"
makedepends="gtk+-devel libnotify-devel libgtop-devel libSM-devel
 libXt-devel libXcomposite-devel mate-desktop-devel libcanberra-devel
 startup-notification-devel"
depends="zenity"
short_desc="A window manager for MATE"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2"
homepage="http://mate-desktop.org"
distfiles="http://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=e50fa7b0fea52a4aad0bfa99f204f1f320c704f48d4f945cc40a65546601c1d0

pre_configure() {
	libtoolize -f
}

libmarco_package() {
	short_desc+=" - runtime library"
	pkg_install() {
		vmove usr/lib/*.so.*
	}
}
libmarco-devel_package() {
	short_desc+=" - development files"
	depends="libmarco>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
		vmove usr/lib/pkgconfig
	}
}
