wok annotate cups-pdf/receipt @ rev 25161

created recipe for py3k-pillow
author Hans-G?nter Theisgen
date Fri Jul 01 10:04:47 2022 +0100 (2022-07-01)
parents 16a1074d5933
children
rev   line source
jozee@2840 1 # SliTaz package receipt.
jozee@2840 2
jozee@2840 3 PACKAGE="cups-pdf"
Hans-G?nter@22621 4 VERSION="3.0.1"
jozee@2840 5 CATEGORY="system-tools"
Hans-G?nter@22621 6 TAGS="printer printing"
Hans-G?nter@22621 7 SHORT_DESC="PDF printer for cups."
jozee@2840 8 MAINTAINER="jozee@slitaz.org"
pascal@15002 9 LICENSE="GPL2"
Hans-G?nter@22621 10 WEB_SITE="https://www.cups-pdf.de/"
Hans-G?nter@22621 11
jozee@2840 12 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
Hans-G?nter@22621 13 WGET_URL="${WEB_SITE}src/${TARBALL}"
jozee@2840 14
Hans-G?nter@22621 15 DEPENDS="cups ghostscript"
Hans-G?nter@22621 16 BUILD_DEPENDS="cups-dev"
pascal@15002 17
pascal@24425 18 # What is the latest version available today?
pascal@24425 19 current_version()
pascal@24425 20 {
pascal@24425 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 22 sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 23 }
pascal@24425 24
jozee@2840 25 # Rules to configure and make the package.
jozee@2840 26 compile_rules()
jozee@2840 27 {
jozee@2840 28 cd $src/src
Hans-G?nter@22622 29 gcc -Wall -o cups-pdf cups-pdf.c -lcups -lm
jozee@2840 30 }
jozee@2840 31
jozee@2840 32 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2840 33 genpkg_rules()
jozee@2840 34 {
Hans-G?nter@22621 35 mkdir -p $fs/etc/cups
Hans-G?nter@22621 36 mkdir -p $fs/usr/lib/cups/backend
Hans-G?nter@22621 37 mkdir -p $fs/usr/share/cups/model
Hans-G?nter@22621 38
Hans-G?nter@22621 39 cp -a $src/src/cups-pdf $fs/usr/lib/cups/backend
Hans-G?nter@22621 40 cp -a $src/extra/CUPS-PDF_*.ppd $fs/usr/share/cups/model
Hans-G?nter@22621 41 cp -a $src/extra/cups-pdf.conf $fs/etc/cups
Hans-G?nter@22621 42 }