void-packages/srcpkgs/mutter/template
2020-10-09 21:57:44 +07:00

47 lines
1.5 KiB
Bash

# Template file for 'mutter'
pkgname=mutter
version=3.38.1
revision=1
build_helper="gir"
build_style=meson
configure_args="-Degl_device=true -Dudev=true -Dnative_backend=true
-Dprofiler=false -Dintrospection=true -Dxwayland_path=/usr/bin/Xwayland
-Dxwayland_initfd=disabled"
hostmakedepends="gettext glib-devel pkg-config zenity wayland-devel xorg-server"
makedepends="elogind-devel glib-devel gnome-desktop-devel graphene-devel
json-glib-devel libglib-devel libSM-devel libXtst-devel libcanberra-devel
libinput-devel MesaLib-devel pipewire-devel startup-notification-devel
wayland-protocols gnome-settings-daemon-devel"
depends="gsettings-desktop-schemas desktop-file-utils zenity"
short_desc="Lightweight GTK+3 window manager"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/Mutter/"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=e921570c9fdf63805dbd40aa21daa05504a1b9a21432d6119c54c17ee0217a33
shlib_provides="libmutter-clutter-7.so libmutter-cogl-7.so
libmutter-cogl-pango-7.so libmutter-cogl-path-7.so"
case "$XBPS_MACHINE" in i686*)
pre_build() {
ninja ${makejobs} -C build src/meta-dbus-display-config.h
}
;;
esac
# needs X
do_check() {
:
}
mutter-devel_package() {
depends="gtk+3-devel graphene-devel clutter-devel
libX11-devel libXtst-devel mutter-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/mutter-7/*.gir"
vmove "usr/lib/*.so"
}
}