makedepends=(dconf glib gdk-pixbuf gtk3 startup-notification iso-codes)

description="Library with common API for various MATE modules"
url="https://mate-desktop.org/"

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

name=mate-desktop
version=1.28.2
release=2

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

build() {

cd $name-$version

sed -i "s|@datadir@/backgrounds/mate/desktop/Stripes.png|/usr/share/backgrounds/great-os/aviator-cat.png|" \
schemas/org.mate.background.gschema.xml.in

./configure --prefix=/usr \
            --disable-schemas-compile \
            --disable-static

make

sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

make DESTDIR=$PKG install
}
