# Contributor: Alan Lacerda # Maintainer: Alan Lacerda pkgname=atril pkgver=1.14.0 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 dconf-dev libsm-dev libsecret-dev caja-extensions-dev caja-dev poppler-dev tiff-dev itstool libxml2-utils libxml2-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz" _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --sysconfdir=/etc \ --enable-epub \ --with-gtk=2.0 \ --prefix=/usr || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="${pkgdir}" install || return 1 } md5sums="e200eb7c29fe697ce7bc6a3bbfd9cf64 atril-1.14.0.tar.xz" sha256sums="1804dfeeb5b975955fec867abbce967d403c17c46ba70375a3c408b23703ee35 atril-1.14.0.tar.xz" sha512sums="787512e4a2dc8cb5999c293c67681c040116ffcda00b01f99d769acdb17e28e68599b1bb78740ec45f0fe9ab36a729709bf2bee602ce293456d1f965673fe945 atril-1.14.0.tar.xz"