# Description: Backends and filters for CUPS
# URL: https://github.com/OpenPrinting/cups-filters
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libcupsfilters libppd
# Optional: avahi mupdf poppler

name=cups-filters
version=2.0.0
release=1
source=(https://github.com/OpenPrinting/cups-filters/releases/download/$version/$name-$version.tar.xz)

build() {
	cd $name-$version

	prt-get isinst avahi || PKGMK_CUPSFILTERS+=' --disable-avahi'
	prt-get isinst mupdf || PKGMK_CUPSFILTERS+=' --disable-mutool'
	prt-get isinst poppler || PKGMK_CUPSFILTERS+=' --disable-poppler'

	./configure $PKGMK_CUPSFILTERS --prefix=/usr
	make
	make DESTDIR=$PKG install

	rm -r $PKG/usr/share/doc
}
