# Maintainer: Natanael Copa pkgname=cups-filters pkgver=1.0.76 pkgrel=1 pkgdesc="OpenPrinting CUPS filters and backends" url="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format" arch="all" license="GPLv2 and GPLv2+ and GPLv3 and MIT" # textonly is a bash script # texttops/textopdf need FreeMono from ttf-freefont # for text printing to work depends="poppler-utils bc bash ttf-freefont" depends_dev="" makedepends="$depends_dev cups-dev libjpeg-turbo-dev poppler-dev zlib-dev libpng-dev tiff-dev lcms-dev freetype-dev ghostscript-dev fontconfig-dev qpdf-dev avahi-dev dbus-dev linux-headers" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="http://www.openprinting.org/download/cups-filters/cups-filters-$pkgver.tar.xz" _builddir="$srcdir"/cups-filters-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-static \ --with-pdftops=pdftops \ --without-rcdir \ --without-rclevels \ || return 1 # workaround parallel build issue by building libcupsfilters.la first make libcupsfilters.la && make libfontembed.la && make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 #the pdf.utf-8 symlink isn't quite good enough cd "$pkgdir"/usr/share/cups/charsets && \ ln -s pdf.utf-8.simple pdf.UTF-8 || return 1 } dev() { default_dev # cupsfilters.drv needs pcl.h install -Dm644 "$_builddir"/filter/pcl.h \ "$pkgdir"/usr/share/cups/ppdc/pcl.h } libs() { pkgdesc="OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ } md5sums="92e14b4f52a320c8d8b8176918bd4a8c cups-filters-1.0.76.tar.xz" sha256sums="b3a190b11a102af6994e41d2cfa47e5caf999c7d046f3c0b940f6b38729f5b32 cups-filters-1.0.76.tar.xz" sha512sums="1c438ffc10551b79468f7f850e8f036defaa9c2e1114153107ff909904f25786c36635ea29cb8b07a2d6df37ab2e68bd91731d783e279f1a36decba9204baf7d cups-filters-1.0.76.tar.xz"