# Template file for 'nautilus'
pkgname=nautilus
version=3.8.1
revision=1
build_style=gnu-configure
configure_args="--disable-update-mimedb --disable-debug
 --disable-schemas-compile --disable-nst-extension"
hostmakedepends="pkg-config intltool gobject-introspection"
makedepends="gtk+3-devel>=3.8.0 libnotify-devel libexif-devel exempi-devel
 libxml2-devel tracker-devel>=0.16 gnome-desktop-devel>=3.8.0"
short_desc="The GNOME file manager"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org"
license="GPL-2, LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/3.8/$pkgname-$version.tar.xz"
checksum=9827e939aa0621041754379ca0227ceb82877785f013dd5935ecc4b791314892
long_desc="
 Nautilus is the official file manager for the GNOME desktop. It is
 designed to be primarly a file manager, but there is support for web and
 file viewing too."

libnautilus_package() {
	short_desc+=" - shared libraries"
	replaces="nautilus<3.2.1"
	pkg_install() {
		vmove "usr/lib/*.so*"
	}
}

nautilus-devel_package() {
	depends="gtk+3-devel libnautilus-${version}_${revision}"
	short_desc="${sourcepkg} - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/gir-1.0
		vmove usr/share/gtk-doc
	}
}

nautilus_package() {
	depends="hicolor-icon-theme desktop-file-utils gsettings-desktop-schemas>=3.6.0"
	pkg_install() {
		vmove usr
	}
}
