void-packages/srcpkgs/mutter/template

42 lines
1.3 KiB
Bash

# Template file for 'mutter'
pkgname=mutter
version=3.18.1
revision=2
build_style=gnu-configure
configure_args="--disable-schemas-compile --disable-static --enable-compile-warnings=no"
hostmakedepends="pkg-config intltool gnome-doc-utils gobject-introspection
glib-devel wayland-devel zenity"
makedepends="
gtk+3-devel startup-notification-devel libcanberra-devel
clutter-devel gsettings-desktop-schemas-devel
upower-devel gnome-desktop-devel libSM-devel
zenity"
depends="zenity desktop-file-utils"
short_desc="Lightweight GTK+3 window manager"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnome.org"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=4fdee7c9dc2db3a48f18723f47c3122aa5bddaddb8751701ce243e577e2a69a9
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
mutter-devel_package() {
depends="gsettings-desktop-schemas>=3.16 gtk+3-devel>=3.16
clutter-devel>=1.22 libX11-devel mutter>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove "usr/lib/mutter/*.gir"
fi
vmove "usr/lib/*.so"
}
}