1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
4 pkgname=('gutenprint' 'foomatic-db-gutenprint-ppds')
7 pkgdesc="Top quality printer drivers for POSIX systems"
10 url="http://gimp-print.sourceforge.net/" # no https
11 makedepends=('gimp' 'gtk2' 'cups' 'ghostscript'
13 'dialog' 'doxygen' 'docbook-utils' 'texi2html' 'texlive-bin')
14 options=('!emptydirs' 'debug')
15 source=(https://downloads.sourceforge.net/gimp-print/$pkgname-$pkgver.tar.xz)
16 sha1sums=('46167d00c2a4fb07c3fd3d62c80cd3fa004629f0')
17 sha256sums=('db44a701d2b8e6a8931c83cec06c91226be266d23e5c189d20a39dd175f2023b')
20 cd "${pkgbase}"-${pkgver}
21 # sbindir is not properly taken over there
22 sed -i "s:cups_sbindir=\"\${cups_exec_prefix}\/sbin\":cups_sbindir=\"\${cups_exec_prefix}\/bin\":" m4local/stp_cups.m4
27 cd "${pkgbase}"-${pkgver}
28 ./configure --prefix=/usr \
33 --disable-static-genppd \
35 --enable-simplified-cups-ppds=only \
36 --enable-translated-cups-ppds \
37 --enable-globalized-cups-ppds #--help
39 # globalized ppds -> put all translations into one ppd file
40 # enable translated cups ppds grows size 9,5MB -> 156MB
41 # simplified cups ppds (yes, no, only) - only offer basic paper sizes, not all options
42 # 4,3MB (only), 17MB (both) -> translated 41MB simpl., 165MB, 231MB both
44 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
48 package_gutenprint() {
49 pkgdesc="Top quality printer drivers for POSIX systems"
50 install=gutenprint.install
51 depends=('cups' 'cups-filters')
52 optdepends=('gimp: adds gutenprint plugin to gimp'
53 'libusb: required for drivers that depend on gutenprint52usb backend'
54 'foomatic-db-gutenprint-ppds: prebuilt ppd files'
55 'perl: to run cups-genppdupdate')
56 replaces=('gimp-print')
58 cd "${pkgname}"-${pkgver}
59 make DESTDIR="${pkgdir}" install
62 mkdir "$srcdir"/tmp_foomatic-db-gutenprint-ppds
64 mv "${pkgdir}"/usr/share/cups/model "$srcdir"/tmp_foomatic-db-gutenprint-ppds/
67 rm -rf "${pkgdir}"/usr/share/foomatic
68 rm -rf "${pkgdir}"/etc
71 package_foomatic-db-gutenprint-ppds() {
72 pkgdesc="simplified prebuilt ppd files"
73 optdepends=('cups: to use cups printer spooler(recommended)')
75 cd "${pkgbase}"-${pkgver}
76 mkdir -p "${pkgdir}"/usr/share/cups
77 mv "$srcdir"/tmp_foomatic-db-gutenprint-ppds/* "${pkgdir}"/usr/share/cups/