# Template file for 'mutter-wayland'
pkgname=mutter-wayland
version=3.10.1
revision=1
build_style=gnu-configure
configure_args="--disable-schemas-compile --disable-static"
hostmakedepends="pkg-config intltool gnome-doc-utils gobject-introspection"
makedepends="gtk+3-devel>=3.10 startup-notification-devel libcanberra-devel
 clutter-devel>=1.16.0_3 gsettings-desktop-schemas-devel>=3.10 libSM-devel
 dbus-glib-devel upower-devel gnome-desktop-devel>=3.10 systemd-devel
 pam-devel zenity desktop-file-utils"
depends="zenity>=3.8 desktop-file-utils"
short_desc="GNOME Lightweight GTK+3 window manager for Wayland"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/3.10/$pkgname-$version.tar.xz"
checksum=bdb6bcc25791309256b09ec9aa7e0be311ef311778450aafccb86caf2753b6b4

post_install() {
	# provided by mutter.
	rm -r ${DESTDIR}/usr/share/{man,gtk-doc,GConf,gnome-control-center}
	rm ${DESTDIR}/usr/share/glib-2.0/schemas/org.gnome.mutter.gschema.xml
}

mutter-wayland-devel_package() {
	short_desc+=" - development files"
	depends="gsettings-desktop-schemas-devel gtk+3-devel
		clutter-devel>=1.16.0_3 wayland-devel libX11-devel
		${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
