Date: Tuesday, January 3, 2023 @ 01:57:16
  Author: foutrelis
Revision: 1374257

archrelease: copy trunk to community-staging-x86_64

Added:
  atril/repos/community-staging-x86_64/
  atril/repos/community-staging-x86_64/PKGBUILD
    (from rev 1374256, atril/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: atril/repos/community-staging-x86_64/PKGBUILD (from rev 1374256, 
atril/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-01-03 01:57:16 UTC (rev 1374257)
@@ -0,0 +1,51 @@
+# Maintainer: Brad Fanella <[email protected]>
+# Contributor: Martin Wimpress <[email protected]>
+
+pkgname=atril
+pkgver=1.26.0
+pkgrel=3
+pkgdesc="MATE document viewer"
+url="https://mate-desktop.org";
+arch=('x86_64')
+license=('GPL')
+depends=('djvulibre' 'libspectre' 'libgxps' 'mathjax2' 'gettext' 
'poppler-glib' 'cairo>=1.14.0' 'webkit2gtk>=2.6.0' 'libsynctex')
+makedepends=('caja' 'gobject-introspection' '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=('715e766eaede3fa5d8ca300fa3319fb2b63055dfdc6e971d8750c2aec624e45f')
+
+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
+}

Reply via email to