# Maintainer: Natanael Copa pkgname=cups-filters pkgver=1.0.53 pkgrel=0 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 depends="poppler-utils bc bash" 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" 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 || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } 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="85c605f82cddfd9990a17f1ffaf51eec cups-filters-1.0.53.tar.xz" sha256sums="a25b55228cc13549d6989a9f6319e4e313ce42fe88d8b645e02b0c17d02dc2bf cups-filters-1.0.53.tar.xz" sha512sums="dc46195211615cd91ce4bd8a616a8f89bcfd5e601195d6a0ab9761aee964c424929dc0d30347947d742138f7dad29ce9259bac6209945cc4a1d475614db59d0e cups-filters-1.0.53.tar.xz"