# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=nautilus
pkgver=3.24.1
pkgrel=0
pkgdesc="GNOME file manager"
url="https://wiki.gnome.org/Apps/Nautilus"
arch="all"
license="GPL"
depends=""
depends_dev="gnome-desktop-dev gnome-autoar-dev"
makedepends="$depends_dev itstool libxml2-dev libxml2-utils docbook-xsl docbook-xml libxslt intltool libexif-dev jpeg-dev tiff-dev librsvg-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/nautilus/3.24/nautilus-$pkgver.tar.xz"
builddir="$srcdir/nautilus-$pkgver"

# testsuite doesn't work
options="!check"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-xmp \
		--disable-selinux \
		--disable-tracker
	make
}

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

check() {
	cd "$builddir"
	make check
}

sha512sums="d01be58d9f476dc53e67a3cd2502e7042805ca178d2d7c0d540c3f01c2b7dab505cc7b57716c258a402759f4ed709cca65520397f1cbbf5cd69592ddc63b015e  nautilus-3.24.1.tar.xz"
