Date: Wednesday, February 7, 2018 @ 21:58:15 Author: arojas Revision: 290069
archrelease: copy trunk to community-staging-x86_64 Added: atril/repos/community-staging-x86_64/ atril/repos/community-staging-x86_64/PKGBUILD (from rev 290068, atril/trunk/PKGBUILD) ----------+ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) Copied: atril/repos/community-staging-x86_64/PKGBUILD (from rev 290068, atril/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-02-07 21:58:15 UTC (rev 290069) @@ -0,0 +1,52 @@ +# Maintainer: +# Contributor: Martin Wimpress <c...@flexion.org> + +pkgname=atril +pkgver=1.20.0 +pkgrel=1 +pkgdesc="MATE document viewer" +url="https://mate-desktop.org" +arch=('x86_64') +license=('GPL') +depends=('djvulibre' 'libspectre' 'libgxps' 'mathjax' 'poppler-glib' 'webkit2gtk') +makedepends=('caja' 'gobject-introspection' 'intltool' 'itstool' 'texlive-bin') +optdepends=('caja: Document Properties extension' + 'texlive-bin: DVI support') +groups=('mate-extra') +conflicts=('atril-gtk3') +replaces=('atril-gtk3') +source=("https://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz") +sha256sums=('36d0515675951923f1d39c37ef6d1eacb4221bb33dc947d6e6c532d858976998') + +prepare() { + cd $pkgname-$pkgver + + # Fix mathjax path + sed -i 's|/usr/share/javascript/mathjax|/usr/share/mathjax|' backend/epub/epub-document.c +} + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/${_pkgbase} \ + --with-gtk=2.0 \ + --enable-djvu \ + --enable-dvi \ + --enable-epub \ + --enable-t1lib \ + --enable-pixbuf \ + --enable-comics \ + --enable-xps \ + --enable-introspection + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +}