[arch-commits] Commit in atril/repos (4 files)
Antonio Rojas
arojas at archlinux.org
Fri Mar 17 19:28:17 UTC 2017
Date: Friday, March 17, 2017 @ 19:28:16
Author: arojas
Revision: 216940
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 216939, atril/trunk/PKGBUILD)
atril/repos/community-staging-x86_64/
atril/repos/community-staging-x86_64/PKGBUILD
(from rev 216939, atril/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++
2 files changed, 102 insertions(+)
Copied: atril/repos/community-staging-i686/PKGBUILD (from rev 216939, atril/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-03-17 19:28:16 UTC (rev 216940)
@@ -0,0 +1,51 @@
+# Contributor: Martin Wimpress <code at flexion.org>
+
+pkgname=atril
+pkgver=1.18.0
+pkgrel=1
+pkgdesc="MATE document viewer"
+url="http://mate-desktop.org"
+arch=('i686' '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=("http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
+sha1sums=('5cbcd69733bd5ba23c10a60b2a2350171d95ddf6')
+
+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
+}
Copied: atril/repos/community-staging-x86_64/PKGBUILD (from rev 216939, atril/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-03-17 19:28:16 UTC (rev 216940)
@@ -0,0 +1,51 @@
+# Contributor: Martin Wimpress <code at flexion.org>
+
+pkgname=atril
+pkgver=1.18.0
+pkgrel=1
+pkgdesc="MATE document viewer"
+url="http://mate-desktop.org"
+arch=('i686' '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=("http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
+sha1sums=('5cbcd69733bd5ba23c10a60b2a2350171d95ddf6')
+
+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
+}
More information about the arch-commits
mailing list