makedepends=(enchant gtk3 libsoup iso-codes gtksourceview4 mate-desktop python-gobject libpeas zenity itstool
             python-setuptools yelp-tools gtk-doc autoconf-archive mate-common git)
run=(mate-desktop python-gobject)

description="A powerful text editor for MATE"
url="https://mate-desktop.org/"

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

name=pluma
version=1.28.1
release=1

source=(https://github.com/mate-desktop/pluma/archive/refs/tags/v${version}.tar.gz)

build() {

  cd $name-$version

  #clone the submodules
  git clone https://github.com/mate-desktop/mate-submodules pluma/mate-submodules

  #fix issue compiling
  #rm -r help/ru/
  NOCONFIGURE=1 ./autogen.sh

  ./configure --prefix=/usr \
              --libexecdir=/usr/lib/${name} \
              --enable-gtk-doc=no \
              --enable-python
          
  make

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

  make DESTDIR=$PKG install
}
