# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=caja
pkgver=1.28.0
pkgrel=0
pkgdesc="The file manager for the MATE desktop"
url="https://github.com/mate-desktop/caja"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.0-or-later"
depends="mate-common"
makedepends="$depends_dev
	dconf-dev
	gobject-introspection-dev
	gtk+3.0-dev
	gtk-doc
	intltool
	libnotify-dev
	libsm-dev
	libtool
	libxml2-dev
	mate-desktop-dev
	"
checkdepends="xvfb-run"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/caja-$pkgver.tar.xz"
options="!check" # (caja:744): GLib-GIO-ERROR **: 12:12:20.291: Settings schema 'org.mate.caja.preferences' is not installed

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--sysconfdir=/etc \
		--disable-update-mimedb
	make
}

#check() {
#	xvfb-run make check
#}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
059f88d4fc8a48483fe180645c75fefd0941ac8e4b2aadd16ddc8a89c7505081ce7d8a063d2c2a3c224f4fb279125561a83150e4d2142f718c3a54764cf8fbc2  caja-1.28.0.tar.xz
"
