# Contributor: Alan Lacerda # Maintainer: Alan Lacerda pkgname=atril pkgver=1.10.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" 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 find "$pkgdir" -name \*.la -delete } md5sums="7f313068db354eee9e7282b9d0994e18 atril-1.10.0.tar.xz" sha256sums="de74bb8d20290b9aab4f5e6e6c58d4e14a979e4914409cb1803522120d814181 atril-1.10.0.tar.xz" sha512sums="679681bbb1764117cb30dccc8511847badb18eee8768e5e0de3fc93baf7cd589438aecde6205c066ea70968d9d2420fbe9c7c54858b1790667280955a1afa794 atril-1.10.0.tar.xz"