SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "foomatic-db-engine"

# SliTaz package receipt.

PACKAGE="foomatic-db-engine"
VERSION="4.0.13" 
CATEGORY="system-tools"
SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database"
MAINTAINER="jozee@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
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 foomatic-filters bash"
BUILD_DEPENDS="cups-dev file libxml2-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/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()
{
    PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
    cd $src
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        $CONFIGURE_ARGS &&
    make &&
    eval `perl -V:archname`
    make DESTDIR=$DESTDIR \
        INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/${archname} \
        INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
        INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/${archname} install
    
}

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

pre_install()
{
    rm -rf "$1/usr/lib/perl5/site_perl/current"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)