summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e7463969038ef5067c815cb2355a9d6e8475567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: John Jenkins twodopeshaggy@gmail.com
# Contributor: megadriver <megadriver at gmx dot com>
# Contributor: Leonid.I
# This is basically the old evince-gtk PKGBUILD by pizzapunk
# This one DOES conflict with evince from [extra], on purpose :)

pkgname=evince2-light
pkgver=2.32.0
pkgrel=7
pkgdesc="Simply a document viewer (GTK2 version, GNOME free!)"
arch=('i686' 'x86_64')
url="http://projects.gnome.org/evince/"
license=('GPL')
depends=('gtk2' 'poppler-glib' 'libspectre' 'djvulibre' 't1lib' 'gsfonts' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('intltool')
MAKEFLAGS="-j$(nproc)"
provides=('evince')
conflicts=('evince')
options=('!libtool')
install=evince2-light.install
source=("http://ftp.gnome.org/pub/gnome/sources/evince/2.32/evince-$pkgver.tar.bz2"
        update-poppler.patch libview-crash.patch kill-missing-gconf-complaints.patch 0001-tiff-fix-compile-warning.patch)
md5sums=('ebc3ce6df8dcbf29cb9492f8dd031319'
         '10630dcef4486c00e58ef93963b4177f'
         '98139149793acd30188e037780e9a2cf'
         '0db697ba8cdca1deb889d36aaacf4f52'
         "339d61e12fd953913e29c4ee8e908f54")

build() {
  cd "$srcdir"/evince-$pkgver

  patch -Np1 -i "$srcdir/libview-crash.patch"
  patch -Np1 -i "$srcdir/update-poppler.patch"
  patch -Np1 -i "$srcdir/kill-missing-gconf-complaints.patch"
  patch -Np1 -i "$srcdir/0001-tiff-fix-compile-warning.patch"
  sed -i -e '63d' configure.ac
  autoreconf -fi

  # Don't depend on gnome-icon-theme
  sed -i '/gnome-icon-theme/d' configure

  ./configure --prefix=/usr \
              --libexecdir=/usr/lib/evince \
              --disable-static \
              --disable-schemas-compile \
              --disable-tests \
              --disable-nautilus \
              --disable-scrollkeeper \
              --disable-help \
              --enable-t1lib \
              --enable-pixbuf \
              --enable-impress \
              --without-keyring \
              --without-gconf
  make LIBS=-lICE
}

package() {
  cd "$srcdir"/evince-$pkgver
  make DESTDIR="$pkgdir" install
  rm -rf $pkgdir/usr/share/GConf
}