wok view cups-pdf/receipt @ rev 24556

updated flatpress (0.1010.2 -> 1.2.1)
author Hans-G?nter Theisgen
date Fri Feb 25 14:05:00 2022 +0100 (2022-02-25)
parents 16a1074d5933
children
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src/src
29 gcc -Wall -o cups-pdf cups-pdf.c -lcups -lm
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/etc/cups
36 mkdir -p $fs/usr/lib/cups/backend
37 mkdir -p $fs/usr/share/cups/model
39 cp -a $src/src/cups-pdf $fs/usr/lib/cups/backend
40 cp -a $src/extra/CUPS-PDF_*.ppd $fs/usr/share/cups/model
41 cp -a $src/extra/cups-pdf.conf $fs/etc/cups
42 }