wok-current view cups-pdf/receipt @ rev 24052

Up slitaz-boot-scripts (469)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 26 19:58:37 2021 +0000 (2021-05-26)
parents e1a067a8ee4c
children 453c249b6219
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-pdf"
4 VERSION="3.0.1"
5 CATEGORY="system-tools"
6 TAGS="printer printing"
7 SHORT_DESC="PDF printer for cups."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.cups-pdf.de/"
12 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
13 WGET_URL="${WEB_SITE}src/${TARBALL}"
15 DEPENDS="cups ghostscript"
16 BUILD_DEPENDS="cups-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/src
22 gcc -Wall -o cups-pdf cups-pdf.c -lcups -lm
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/etc/cups
29 mkdir -p $fs/usr/lib/cups/backend
30 mkdir -p $fs/usr/share/cups/model
32 cp -a $src/src/cups-pdf $fs/usr/lib/cups/backend
33 cp -a $src/extra/CUPS-PDF_*.ppd $fs/usr/share/cups/model
34 cp -a $src/extra/cups-pdf.conf $fs/etc/cups
35 }