# Template file for 'marco'
pkgname=marco
version=1.28.1
revision=1
build_style=meson
hostmakedepends="gdk-pixbuf-devel zenity pkg-config gettext glib-devel"
makedepends="libcanberra-devel libgtop-devel libSM-devel libXcursor-devel
 startup-notification-devel libX11-devel pango-devel gtk+3-devel libglib-devel
 libXcomposite-devel libXrender-devel libXrandr-devel libXinerama-devel
 mate-desktop-devel libXpresent-devel libXres-devel"
depends="zenity"
short_desc="Window manager for MATE"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://mate-desktop.org"
changelog="https://raw.githubusercontent.com/mate-desktop/marco/master/NEWS"
distfiles="https://pub.mate-desktop.org/releases/${version%.*}/marco-${version}.tar.xz"
checksum=2496e5e40ee980cd6849493ac3e0f8fd0dec8b81c674da8d9ba19a577f0ac2e1
make_check=no # timeout

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
	}
}
