SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pnm2ppa"

# SliTaz package receipt.

PACKAGE="pnm2ppa"
VERSION="1.13"
CATEGORY="system-tools"
SHORT_DESC="Ghostscript print filter and color driver for some HP DeskJet printers."
MAINTAINER="jozee@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://pnm2ppa.sourceforge.net/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

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

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/pnm2ppa/files/pnm2ppa/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/pnm2ppa/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --sysconfdir=/etc    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p  $fs/usr
    
    cp -a $install/etc    $fs
    cp -a $install/usr/bin    $fs/usr

    # Still needs ppd file download for the specific printer from 
    # http://www.linuxprinting.org/show_driver.cgi?driver=pnm2ppa&fromprinter=HP-DeskJet_710C

}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)