# Contributor: Alan Lacerda # Maintainer: Alan Lacerda pkgname=atril pkgver=1.12.2 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="66d217a5759b9195b1650e47621bf0ab atril-1.12.2.tar.xz" sha256sums="47cd22969d4ff6ef860a310a57f77f1fcc0c5674113a72ee507d2b1b5c780226 atril-1.12.2.tar.xz" sha512sums="2ceeda42adeb284a25caff3a69d15a231129988fb410e4d502a281ccf5819307b9963722a2e330307a1c3b15d3c82405b708d983ed1c266e091a35264766e6ec atril-1.12.2.tar.xz"