makedepends=(glib json-glib libinput xorg-libsm gnome-desktop4 gnome-settings-daemon
             libwacom libxkbcommon upower zenity gobject-introspection libcanberra
             startup-notification pipewire xorg-libxcursor xorg-libxcomposite wayland
             xwayland wayland-protocols graphene cmake xorg-libxkbfile xorg-xkeyboard-config
             xorg-server libei python-dbusmock python-setuptools libdisplay-info
             python-docutils glycin umockdev)

description="Window manager for gnome."
url="http://www.gnome.org/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=mutter
version=50.1
release=1

source=(https://download.gnome.org/sources/$name/${version:0:2}/$name-$version.tar.xz)

set=(gnome3)

build() {

  # sed -i '/catchsegv/d' $name-$version/src/meson.build
  
  mkdir build && cd build

  meson --prefix=/usr \
        --libdir=/usr/lib       \
        --buildtype=release     \
        -Dprofiler=false        \
        -Dbash_completion=false \
        ../$name-$version

  ninja
  DESTDIR=$PKG ninja install
}
