makedepends=(caja gobject-introspection gtk3 libcanberra xorg-libice librsvg libsoup itstool
             xorg-libsm xorg-libxau libwnck marco mate-desktop mate-libweather mate-menus
             mate-session-manager libwnck python-setuptools)
run=(dconf-editor)

description="MATE panel"
url="https://mate-desktop.org/"

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

name=mate-panel
version=1.28.4
release=1

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

build() {

  cd $name-$version
  ./configure --prefix=/usr \
              --libexecdir=/usr/lib/${name} \
              --sysconfdir=/etc \
              --localstatedir=/var \
              --enable-introspection \
              --disable-static

  make

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

  make DESTDIR=$PKG install
}
