blob: a9947466fe4900a228e9d831ee7ba3dd946d02e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cups-filters
pkgver=1.27.2
pkgrel=1
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="c0e1456dd3f512ae2215e566f853e47b66de46d0d1301fc5a6f3674ac7d1ddb03c3bb236b0419b20168742076381c58581cc3e582cf7abf76139367d549a6c46 cups-filters-1.27.2.tar.xz"
|