[arch-commits] Commit in atril/repos (4 files)

Balló György bgyorgy at archlinux.org
Sun Aug 7 08:02:34 UTC 2016


    Date: Sunday, August 7, 2016 @ 08:02:33
  Author: bgyorgy
Revision: 185740

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

-----------------------------------+
 community-staging-i686/PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

Copied: atril/repos/community-staging-i686/PKGBUILD (from rev 185739, atril/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-08-07 08:02:33 UTC (rev 185740)
@@ -0,0 +1,52 @@
+# Contributor: Martin Wimpress <code at flexion.org>
+
+_ver=1.14
+_pkgbase=atril
+pkgname=(${_pkgbase})
+pkgver=${_ver}.1
+pkgrel=1
+pkgdesc="MATE document viewer (GTK2 version)"
+url="http://mate-desktop.org"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('mate-desktop' 'djvulibre' 'libspectre' 'libgxps' 'mathjax' 'poppler-glib' 'webkitgtk2')
+makedepends=('caja' 'gobject-introspection' 'intltool' 'itstool' 'texlive-bin')
+optdepends=('caja: Document Properties extension'
+            'texlive-bin: DVI support')
+groups=('mate-extra')
+conflicts=("${_pkgbase}-gtk3")
+source=("http://pub.mate-desktop.org/releases/${_ver}/${_pkgbase}-${pkgver}.tar.xz")
+sha1sums=('7e1cd353202e9ae4a5ad63b093572d140dd0a7c3')
+
+prepare() {
+    cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+    # Fix mathjax path
+    sed -i 's|/usr/share/javascript/mathjax|/usr/share/mathjax|' backend/epub/epub-document.c
+}
+
+build() {
+    cd "${srcdir}/${_pkgbase}-${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 "${srcdir}/${_pkgbase}-${pkgver}"
+    make DESTDIR="${pkgdir}" install
+}

Copied: atril/repos/community-staging-x86_64/PKGBUILD (from rev 185739, atril/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-08-07 08:02:33 UTC (rev 185740)
@@ -0,0 +1,52 @@
+# Contributor: Martin Wimpress <code at flexion.org>
+
+_ver=1.14
+_pkgbase=atril
+pkgname=(${_pkgbase})
+pkgver=${_ver}.1
+pkgrel=1
+pkgdesc="MATE document viewer (GTK2 version)"
+url="http://mate-desktop.org"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('mate-desktop' 'djvulibre' 'libspectre' 'libgxps' 'mathjax' 'poppler-glib' 'webkitgtk2')
+makedepends=('caja' 'gobject-introspection' 'intltool' 'itstool' 'texlive-bin')
+optdepends=('caja: Document Properties extension'
+            'texlive-bin: DVI support')
+groups=('mate-extra')
+conflicts=("${_pkgbase}-gtk3")
+source=("http://pub.mate-desktop.org/releases/${_ver}/${_pkgbase}-${pkgver}.tar.xz")
+sha1sums=('7e1cd353202e9ae4a5ad63b093572d140dd0a7c3')
+
+prepare() {
+    cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+    # Fix mathjax path
+    sed -i 's|/usr/share/javascript/mathjax|/usr/share/mathjax|' backend/epub/epub-document.c
+}
+
+build() {
+    cd "${srcdir}/${_pkgbase}-${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 "${srcdir}/${_pkgbase}-${pkgver}"
+    make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list