# Maintainer: Natanael Copa pkgname=cups-filters pkgver=1.25.1 pkgrel=0 pkgdesc="OpenPrinting CUPS filters and backends" url="https://wiki.linuxfoundation.org/openprinting/cups-filters" arch="all" license="GPL-2.0-or-later LGPL-2.1-or-later MIT" # while textonly is originally a bash script, it only needs a few changes # to work with any shell (dash being the problematic one) # foomatic-rip needs "a modern shell" in case the PPD requires some # newer constructs; bash, ksh, and zsh are documented as working, # and busybox ash supports most of what bash does # texttops/textopdf need FreeMono from ttf-freefont # for text printing to work depends="poppler-utils bc ttf-freefont ghostscript" makedepends="bash cups-dev libjpeg-turbo-dev poppler-dev zlib-dev libpng-dev tiff-dev lcms2-dev freetype-dev ghostscript-dev fontconfig-dev qpdf-dev avahi-dev dbus-dev linux-headers mupdf-tools coreutils" checkdepends="ttf-dejavu" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="https://github.com/OpenPrinting/cups-filters/releases/download/release-${pkgver//./-}/cups-filters-$pkgver.tar.xz " build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-static \ --with-pdftops=pdftops \ --with-shell=/bin/sh \ --without-rcdir \ --without-rclevels \ --with-test-font-path=/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf # workaround parallel build issue by building libcupsfilters.la first make libcupsfilters.la && make libfontembed.la && make } check() { make check } package() { make -j1 DESTDIR="$pkgdir" install #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 } 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/ } sha512sums="474045497237387dd16bde73253d9e4e9e0ca2f33f3f7ff70245b4c0f8b1dc71abe141f8ab6b467d941dd7153e11369951bc778ef677d6ea17101cd91886625c cups-filters-1.25.1.tar.xz"