makedepends=(gtksourceview4 libgtop libnotify mate-panel mate-icon-theme python-gobject upower wireless-tools upower libnl dbus-glib itstool)

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

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

name=mate-applets
version=1.28.1
release=3

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

build() {
  cd $name-$version

  # somes locales makes segmentation fault
  rm -r mateweather/docs/sr
  sed -i "s@IGNORE_HELP_LINGUAS =@IGNORE_HELP_LINGUAS = sr@" mateweather/docs/Makefile.am
  rm -r drivemount/help/tr
  sed -i "s@IGNORE_HELP_LINGUAS =@IGNORE_HELP_LINGUAS = tr@" drivemount/help/Makefile.am
  rm -r accessx-status/docs/hy
  sed -i "s@IGNORE_HELP_LINGUAS =@IGNORE_HELP_LINGUAS = hy@" accessx-status/docs/Makefile.am

  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --libexecdir=/usr/lib/${name} \
              --enable-polkit \
              --enable-ipv6

  make
  make DESTDIR=$PKG install
}
