# SliTaz package receipt. PACKAGE="foomatic-db-engine" VERSION="4.0-20101114" CATEGORY="system-tools" SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database" MAINTAINER="jozee@slitaz.org" DEPENDS="ghostscript perl libxml2 foomatic-filters bash" BUILD_DEPENDS="cups-dev file" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.linuxprinting.org/foomatic.html" WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL" TAGS="printer driver printing" # Rules to configure and make the package. compile_rules() { mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION 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=$PWD/_pkg \ 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 $_pkg/etc/foomatic $fs/etc cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/sbin $fs/usr cp -a $_pkg/usr/lib $fs/usr cp -a $_pkg/usr/share/foomatic $fs/usr/share } pre_install() { rm -rf $1/usr/lib/perl5/site_perl/current }