SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "foomatic-db"

# SliTaz package receipt.

PACKAGE="foomatic-db"
VERSION="4.0-20221117" 
CATEGORY="system-tools"
SHORT_DESC="Database used by foomatic-db-engine to generate PPD files"
MAINTAINER="jozee@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="http://www.linuxprinting.org/foomatic.html"
WGET_URL="https://web.archive.org/web/20221118084846/https://www.openprinting.org/download/foomatic/$TARBALL"
TAGS="printer driver printing"

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

# What is the latest version available today?
current_version()
{
    wget -O - https://www.openprinting.org/download/foomatic/ 2>/dev/null | \
    sed "/current/d;/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr    
    cp -a $install/usr/share $fs/usr    
    
    # remove unzipped ppd files
    find $fs/usr/share/foomatic/db/source/PPD -name "*.ppd" -exec rm -f '{}' 2>/dev/null \;
}

5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)