blob: 794ad1a537a067e820ee290bac9125fcc5ad6e66 (
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
70
71
72
73
74
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cups-filters
pkgver=1.0.42
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
path_max.patch"
_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="3047524b51f2ac064663f1997c7d2c81 cups-filters-1.0.42.tar.xz
d113d611b603d8f10c33292a66394cca path_max.patch"
sha256sums="3df524207ab24472430cffba7f01407b8adc094ec40094c5f6682d5a88a70dd6 cups-filters-1.0.42.tar.xz
3abac367128cc121c89fe077abac96d168ca06f7541731bfea2cacd490d0c181 path_max.patch"
sha512sums="f323b79f8c1c8596fe9b2a98bee24bdccc9b8ad95852101895c6d4936ebfd75fc1fe34b829606e3bbb102138f484473ccd60dd5035baf486d3027f7143cbbff2 cups-filters-1.0.42.tar.xz
f4768f487147d98e27030f5408175509a9d1be97b300e82d6ec147894cc28cae0108e2f92d13c9202f79293aaaa3afdcbc87bdd27907a69ffd3e8465ed65d1f3 path_max.patch"
|