# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=eog
pkgver=3.27.2
pkgrel=0
pkgdesc="An image viewer for GNOME"
url="https://wiki.gnome.org/Apps/EyeOfGnome"
arch="all"
license="GPL"
depends=""
depends_dev="gtk+3.0-dev gvfs-dev libxml2-dev jpeg-dev libexif-dev lcms2-dev libpeas-dev librsvg-dev gnome-desktop-dev"
makedepends="$depends_dev itstool libxml2-utils"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/eog/3.27/eog-$pkgver.tar.xz"
builddir="$srcdir/eog-$pkgver"

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

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

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

sha512sums="172c87d9411dec689753ff72eb7bc1c4d8cc64c4fcda1beaca4db65e2b7cf657cee8dea659bf4a7712a635d9003d7e826ab1da0a4e00b29f33256319a80bd1de  eog-3.27.2.tar.xz"
