summaryrefslogtreecommitdiff
path: root/staging/evince
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-06 23:14:37 +0000
committerroot <root@rshg054.dnsready.net>2011-10-06 23:14:37 +0000
commit5442e9b8f357932ed5d6cb46e90fcbf6f453469f (patch)
treee2393e2f381e2e539810e51c34e56c8f687c153c /staging/evince
parent068f1f30c0bba25b6b88cefbe982a72535fa1951 (diff)
Thu Oct 6 23:14:37 UTC 2011
Diffstat (limited to 'staging/evince')
-rw-r--r--staging/evince/PKGBUILD37
-rw-r--r--staging/evince/evince.install19
2 files changed, 56 insertions, 0 deletions
diff --git a/staging/evince/PKGBUILD b/staging/evince/PKGBUILD
new file mode 100644
index 000000000..a204249bb
--- /dev/null
+++ b/staging/evince/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 139867 2011-10-05 14:44:08Z jgc $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=evince
+pkgver=3.2.0
+pkgrel=2
+pkgdesc="Simply a document viewer"
+url="http://projects.gnome.org/evince/"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('gtk3' 'libspectre' 'gsfonts' 'poppler-glib' 'djvulibre' 'gnome-icon-theme'
+ 't1lib' 'libgnome-keyring' 'desktop-file-utils' 'dconf' 'gsettings-desktop-schemas')
+makedepends=('gnome-doc-utils' 'nautilus' 'texlive-bin' 'intltool' 'gobject-introspection')
+optdepends=('texlive-bin: DVI support')
+groups=('gnome-extra')
+install=evince.install
+options=('!libtool' '!emptydirs')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
+sha256sums=('a9bc17e7f99489354cc66ffede68466ea0a9c52664b18198291c3a40d0150235')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --libexecdir=/usr/lib/evince \
+ --disable-static --enable-nautilus \
+ --enable-pdf --enable-tiff \
+ --enable-djvu --enable-dvi \
+ --enable-t1lib --enable-comics \
+ --disable-scrollkeeper --disable-schemas-compile \
+ --enable-introspection
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/staging/evince/evince.install b/staging/evince/evince.install
new file mode 100644
index 000000000..9643a9ba0
--- /dev/null
+++ b/staging/evince/evince.install
@@ -0,0 +1,19 @@
+post_install() {
+ usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+pre_upgrade() {
+ if (( $(vercmp $2 2.90.0) < 0 )); then
+ usr/sbin/gconfpkg --uninstall evince
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}