SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "foomatic-db"

# SliTaz package receipt.

PACKAGE="foomatic-db"
VERSION="4.0-20230930" 
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://www.openprinting.org/download/foomatic/$TARBALL"
TAGS="printer driver printing"

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

# Take long long time for recompress, need check why
COOKOPTS="!gz"

# 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 \;
}

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