makedepends=(shared-mime-info exempi mate-desktop pango gtk3 libexif
             libxml2 libunique1 desktop-file-utils libnotify gobject-introspection
             python-setuptools)

description="File manager for the MATE desktop"
url="https://mate-desktop.org/"

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

run=(shared-mime-info desktop-file-utils)

name=caja
version=1.28.0
release=2

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

build() {

  cd $name-$version
  ./configure --prefix=/usr \
              --libexecdir=/usr/lib/${name} \
              --with-gtk=3.0 \
              --enable-unique \
              --enable-introspection \
              --disable-static \
              --disable-update-mimedb

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