Date: Saturday, September 7, 2019 @ 07:35:54 Author: arojas Revision: 508344
archrelease: copy trunk to community-staging-x86_64 Added: atril/repos/community-staging-x86_64/ atril/repos/community-staging-x86_64/PKGBUILD (from rev 508343, atril/trunk/PKGBUILD) ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Copied: atril/repos/community-staging-x86_64/PKGBUILD (from rev 508343, atril/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-09-07 07:35:54 UTC (rev 508344) @@ -0,0 +1,49 @@ +# Maintainer: Brad Fanella <ces...@archlinux.org> +# Contributor: Martin Wimpress <c...@flexion.org> + +pkgname=atril +pkgver=1.22.1 +pkgrel=2 +pkgdesc="MATE document viewer" +url="https://mate-desktop.org" +arch=('x86_64') +license=('GPL') +depends=('djvulibre' 'libspectre' 'libgxps' 'mathjax2' 'poppler-glib' 'webkit2gtk' 'caja' 'texlive-bin') +makedepends=('gobject-introspection' 'intltool' 'itstool') +groups=('mate-extra') +conflicts=('atril-gtk3') +replaces=('atril-gtk3') +source=("https://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz") +sha256sums=('208544f6cce4bb5c0bf423a0d618929e35527d1c5ed120a5aa19f2a7a77e5c44') + +prepare() { + cd "$pkgname-$pkgver" + + # Fix mathjax path + sed -i 's|/usr/share/javascript/mathjax|/usr/share/mathjax2|' backend/epub/epub-document.c +} + +build() { + cd "$pkgname-$pkgver" + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/${_pkgbase} \ + --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 +}