SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cups-pdf"

# SliTaz package receipt.

PACKAGE="cups-pdf"
VERSION="3.0.1" 
CATEGORY="system-tools"
TAGS="printer printing"
SHORT_DESC="PDF printer for cups."
MAINTAINER="jozee@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.cups-pdf.de/"

TARBALL="${PACKAGE}_${VERSION}.tar.gz"
WGET_URL="${WEB_SITE}src/${TARBALL}"

DEPENDS="cups ghostscript"
BUILD_DEPENDS="cups-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src/src
    gcc -Wall -o cups-pdf cups-pdf.c -lcups -lm
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc/cups
    mkdir -p $fs/usr/lib/cups/backend
    mkdir -p $fs/usr/share/cups/model

    cp -a $src/src/cups-pdf        $fs/usr/lib/cups/backend 
    cp -a $src/extra/CUPS-PDF_*.ppd    $fs/usr/share/cups/model
    cp -a $src/extra/cups-pdf.conf    $fs/etc/cups
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)