blob: 83a95a7ed57681f71985f094a3f41f00327e36d5 (
plain) (
tree)
|
|
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=cups-filters
pkgver=1.21.3
pkgrel=0
pkgdesc="OpenPrinting CUPS filters and backends"
url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
arch="all"
license="GPL-2.0-only AND GPL-2.0+ AND GPL-3.0-only AND MIT"
depends="poppler-utils bc ttf-freefont"
makedepends="cups-dev libjpeg-turbo-dev poppler-dev zlib-dev libpng-dev
tiff-dev lcms2-dev freetype-dev fontconfig-dev qpdf-dev dbus-dev linux-headers
coreutils gnutls-dev python3"
checkdepends="ttf-dejavu"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://www.openprinting.org/download/cups-filters/cups-filters-$pkgver.tar.xz
poppler-69-support.patch
"
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 \
--with-shell=/bin/sh \
--without-rcdir \
--without-rclevels \
--disable-avahi \
--disable-ghostscript \
--disable-mutool \
--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() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
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="2b00023ac4177046e3ab3c5b563b7bd92bb49e57e645e6e67e7b9358d00919e2d4ca43ef5d57684523d97f1f1df5d1014fc0a3a895476ce285ccb3ed2e3bc758 cups-filters-1.21.3.tar.xz
6db4cd5d809c7f9511db9cf8cf6b293e5b9143e8d4d7d954a1f7f206a1cbe8baedcc6306c1f8dc7df6dee74ce8c88ffec3dd7efa1f22c32ea37168971013c1ff poppler-69-support.patch"
|