# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
#
# secfixes:
#   3.32.1:
#    - CVE-2019-11461

pkgname=nautilus
pkgver=3.32.3
pkgrel=1
pkgdesc="GNOME file manager"
url="https://wiki.gnome.org/Apps/Nautilus"
arch="all !s390x"
license="GPL-2.0-or-later"
depends="tracker-miners gsettings-desktop-schemas"
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
	libseccomp-dev tracker-dev gst-plugins-base-dev meson gexiv2-dev"
checkdepends="desktop-file-utils appstream-glib"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/nautilus/${pkgver%.*}/nautilus-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		-Dtests=headless \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="f19710f02bd91edb2d2f6cb8f46be6bebea3edfed14a07612444d5990533bafd032b604d65533727eb377b574d6bd4c82dbe11894d85ad254ee1473b683c4392  nautilus-3.32.3.tar.xz"