summaryrefslogtreecommitdiff
path: root/extra/ggv/PKGBUILD
blob: 76c34696970e692741576663b64ab853524d02c9 (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
# $Id: PKGBUILD 134236 2011-08-02 16:46:54Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=ggv
pkgver=2.12.0
pkgrel=4
pkgdesc="Postscript viewer"
arch=(i686 x86_64)
license=('GPL')
depends=('libgnomeui' 'ghostscript' 'desktop-file-utils')
makedepends=('intltool' 'gnome-doc-utils' 'pkgconfig' 'gnome-common')
url="http://www.gnome.org"
install=ggv.install
options=('!emptydirs')
source=(http://ftp.gnome.org/pub/gnome/sources/ggv/2.12/ggv-${pkgver}.tar.bz2)
md5sums=('418f0ef3f8b82bb0c423a2a1cf6769f7')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed '/AC_PATH_XTRA/d' -i configure.in 
  intltoolize --force
  autoreconf --force --install
  ./configure --prefix=/usr --sysconfdir=/etc \
      --libexecdir=/usr/lib/ggv \
      --localstatedir=/var
  make
  make GCONF_DISABLE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
  gconf-merge-schema ${startdir}/pkg/usr/share/gconf/schemas/${pkgname}.schemas --domain ggv ${pkgdir}/etc/gconf/schemas/*.schemas
  rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
}