# Description: Code of the filters of the former cups-filters package as library functions # URL: https://github.com/OpenPrinting/libcupsfilters # Maintainer: Juergen Daubert, jue at crux dot nu # Depends on: pdfio # Optional: dbus ghostscript libexif mupdf name=libcupsfilters version=2.2.1 release=1 source=(https://github.com/OpenPrinting/libcupsfilters/releases/download/$version/$name-$version.tar.xz) build() { cd $name-$version prt-get isinst ghostscript || PKGMK_LIBCUPSFILTERS+=' --disable-ghostscript' prt-get isinst dbus || PKGMK_LIBCUPSFILTERS+=' --disable-dbus' prt-get isinst libexif || PKGMK_LIBCUPSFILTERS+=' --disable-exif' prt-get isinst mupdf || PKGMK_LIBCUPSFILTERS+=' --disable-mutool' prt-get isinst libjxl|| PKGMK_LIBCUPSFILTERS+=' --without-jpegxl' ./configure $PKGMK_LIBCUPSFILTERS --prefix=/usr make make DESTDIR=$PKG install rm -r $PKG/usr/share/doc }