1 # Maintainer: Thomas Hebb <tommyhebb@gmail.com>
2 # Contributor: Andreas Radke <andyrtr@archlinux.org>
7 pkgdesc="Top quality printer drivers for POSIX systems"
10 install=gutenprint.install
11 depends=('readline' 'gnutls>=2.12.3') # needs to be checked. build log says -Lgnutls but namcap doesn't detect it
12 makedepends=('gimp>=2.6.11' 'gtk2>=2.24.4' 'cups>=1.4.6' 'foomatic-db-engine' 'ghostscript>=9.02' 'cvs')
13 optdepends=('cups: to use cups printer spooler(recommended)'
14 'foomatic-db-engine: to use foomatic spooler'
15 'ghostscript: adds postscript support for ijsgutenprint'
16 'gimp: adds gutenprint plugin to gimp')
17 source=('http://downloads.sourceforge.net/gimp-print/gutenprint-5.2.7.tar.bz2' 'buildfix.patch')
18 url='http://gimp-print.sourceforge.net/'
19 provides=('gutenprint')
20 conflicts=('gutenprint')
21 replaces=('gimp-print')
22 options=('!libtool' '!emptydirs')
23 noextract=('gutenprint-5.2.7.tar.bz2')
24 md5sums=('b19029972bf28f6efd693270daf8f5de'
25 '2354cdecf1fbab32eca84266c8c72e7d')
27 _cvsroot=':pserver:anonymous:@gimp-print.cvs.sourceforge.net:/cvsroot/gimp-print'
32 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
34 if [[ -d "$_cvsmod/CVS" ]]; then
38 cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
42 msg "CVS checkout done or server timeout"
43 msg "Starting build..."
45 rm -rf "$srcdir/$_cvsmod-build"
46 cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
47 cd "$srcdir/$_cvsmod-build"
49 patch -Np1 -i "${srcdir}/buildfix.patch"
50 # We extract the precompiled documentation from the latest release because there is currently no easy way to run db2html on Arch.
51 tar -xjf "${srcdir}/gutenprint-5.2.7.tar.bz2" --strip-components 1 'gutenprint-5.2.7/doc/developer'
53 ./configure --prefix=/usr --disable-samples --with-cups --with-gimp2 \
54 --disable-translated-cups-ppds --with-gimp2-as-gutenprint \
55 --disable-libgutenprintui --enable-libgutenprintui2 --disable-gtktest \
56 --enable-cups-ppds --enable-cups-ppds-at-top-level \
57 --with-foomatic --with-foomatic3 --with-ghostscript \
58 --disable-static --disable-static-genppd --with-ijs \
59 --disable-globalized-cups-ppds
64 cd "$srcdir/$_cvsmod-build"
65 make DESTDIR="$pkgdir/" install
68 # vim:set ts=2 sw=2 et: