#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=caja
pkgver=1.16.1
_majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"`
pkgrel=1gv
source=("http://pub.mate-desktop.org/releases/${_majorver}/caja-${pkgver}.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
options=('noautodotnew')


doinst() {
# compile schemas
if [ -x usr/bin/glib-compile-schemas ]; then
	usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mate-file-manager (file manager and graphical shell for MATE)"
"mate-file-manager is the official file manager for the MATE desktop."
"It allows to browse directories, preview files and launch applications"
"associated with them. It is also responsible for handling the icons"
"on the MATE desktop. It works on local and remote filesystems."
)


build() {
	cd $startdir/src/caja-$pkgver

	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--build=$arch-slackware-linux \
		--disable-static \
		--disable-gtk-doc \
		--disable-gtk-doc-html \
		--disable-gtk-doc-pdf \
		--disable-packagekit \
		--disable-schemas-compile \
		--disable-update-mimedb \
		--with-gtk=2.0
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg

	# we don't need gtk-doc
	rm -rf $startdir/pkg/usr/share/gtk-doc
} 
