# Description: MATE için dosya yöneticisi
# URL: http://www.mate-desktop.org/
# Packager: yasarciv67@gmail.com
# Depends on: exempi gvfs libexif xorg-libsm mate-desktop libnotify gstreamer1 gobject-introspection intltool

name=caja
version=1.18.3
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 \
        --with-gtk=2.0 \
        --enable-introspection \
        --disable-update-mimedb

    #https://bugzilla.gnome.org/show_bug.cgi?id=656231
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
  make DESTDIR=$PKG install
  sed -i -e 's/Exec=caja/Exec=caja --force-desktop/g' $PKG/usr/share/applications/caja.desktop
}
