# Template file for 'caja'
pkgname=caja
version=1.28.0
revision=1
build_style=gnu-configure
build_helper="gir"
# self-check only check for eel in make check, requires Xorg server
configure_args="--disable-static --disable-packagekit --disable-schemas-compile
 --disable-update-mimedb --disable-self-check --enable-wayland
 $(vopt_enable gir introspection)
 ac_cv_lib_selinux_is_selinux_enabled=no ac_cv_strftime_extensions=yes"
hostmakedepends="glib-devel gobject-introspection gettext itstool pkg-config
 wayland-devel"
makedepends="exempi-devel gvfs-devel libXt-devel libexif-devel libnotify-devel
 gdk-pixbuf-devel libglib-devel pango-devel gtk+3-devel libxml2-devel
 libexif-devel gtk-layer-shell-devel wayland-devel libX11-devel
 mate-desktop-devel"
depends="dbus gvfs mate-desktop mate-icon-theme"
short_desc="MATE shell and file manager"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://mate-desktop.org"
changelog="https://raw.githubusercontent.com/mate-desktop/caja/master/NEWS"
distfiles="https://pub.mate-desktop.org/releases/${version%.*}/caja-${version}.tar.xz"
checksum=1e3014ce1455817ec2ef74d09efdfb6835d8a372ed9a16efb5919ef7b821957a

build_options="gir"
build_options_default="gir"

libcaja_package() {
	short_desc+=" - runtime library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
		if [ "$build_option_gir" ]; then
			vmove usr/lib/girepository-1.0
		fi
	}
}

libcaja-devel_package() {
	short_desc+=" - development files"
	depends="lib${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		vmove usr/share/gtk-doc
		if [ "$build_option_gir" ]; then
			vmove usr/share/gir-1.0
		fi
	}
}
