From e8eb450dabd7174e0559b6b3b4e9f57784f600ad Mon Sep 17 00:00:00 2001
From: Francesco Colista <fcolista@alpinelinux.org>
Date: Fri, 22 Sep 2017 14:50:39 +0000
Subject: [PATCH] community/atril: upgrade to 1.19.3, compiled against gtk3,
 modernize APKBUILD, added check()

---
 community/atril/APKBUILD | 28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

diff --git a/community/atril/APKBUILD b/community/atril/APKBUILD
index b4bc85411369..c612eb0e26fa 100644
--- a/community/atril/APKBUILD
+++ b/community/atril/APKBUILD
@@ -1,17 +1,18 @@
 # Contributor: Alan Lacerda <alacerda@alpinelinux.org>
 # Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
 pkgname=atril
-pkgver=1.19.0
+pkgver=1.19.3
 pkgrel=0
 pkgdesc="A document viewer for MATE"
 url="https://github.com/mate-desktop/atril"
 arch="all"
 license="GPLv2"
 depends="mate-icon-theme abiword-plugin-epub"
-depends_dev=""
-makedepends="$depends_dev intltool glib-dev gtk+2.0-dev  mate-desktop-dev
+# make check is broken: https://github.com/mate-desktop/atril/issues/167
+options="!check"
+makedepends="intltool glib-dev gtk+3.0-dev  mate-desktop-dev
 	dconf-dev libsm-dev libsecret-dev caja-extensions-dev caja-dev
-	poppler-dev tiff-dev itstool libxml2-utils libxml2-dev"
+	poppler-dev tiff-dev itstool libxml2-utils libxml2-dev python2-dev"
 subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
 source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
 
@@ -20,13 +21,18 @@ builddir="$srcdir/$pkgname-$pkgver"
 build() {
 	cd "$builddir"
 	./configure \
-                --build=$CBUILD \
-                --host=$CHOST \
-                --sysconfdir=/etc \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--sysconfdir=/etc \
 		--enable-epub \
-                --with-gtk=2.0 \
-                --prefix=/usr
-        make
+		--with-gtk=3.0 \
+		--prefix=/usr
+	make
+}
+
+check() {
+	cd "$builddir"
+	make check
 }
 
 package() {
@@ -34,4 +40,4 @@ package() {
 	make DESTDIR="${pkgdir}" install
 }
 
-sha512sums="1f1b90189665a79542d9ed3ba82174b4cbbc602a14bb5c07a3bfa400657e9c5c108b04a7f76ec5be390cf4b848b6cb8725c01829398e3852b811b8ffa7fe426c  atril-1.19.0.tar.xz"
+sha512sums="5b873cb19e754e02da9cf63a5a4bd47fa7bdf77ccfa2312dd4242a51b960f7539a5429207a83134a7e8bdd88ac0b29184631cd27824c5b1974b552b893610332  atril-1.19.3.tar.xz"
-- 
GitLab