makedepends=(mate-desktop gtk3 libcanberra libgtop startup-notification zenity xorg-libxres xorg-libxcomposite itstool)

description="A window manager for MATE"
url="https://mate-desktop.org/"

packager="Grat-OS Team"
maintainer="Grat-OS Team"

name=marco
version=1.28.1
release=1

source=(http://pub.mate-desktop.org/releases/${version%.*}/$name-$version.tar.xz)

build() {

  cd $name-$version
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --localstatedir=/var \
              --with-gtk=3.0 \
              --enable-startup-notification \
              --disable-static

  make
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make DESTDIR=$PKG install
}
