wok-next annotate foomatic-db-engine/receipt @ rev 12865

Up: awesome to 3.4.11.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu May 24 21:17:01 2012 +0000 (2012-05-24)
parents a3ce54180620
children 2540c57957d2
rev   line source
jozee@4552 1 # SliTaz package receipt.
jozee@4552 2
jozee@4552 3 PACKAGE="foomatic-db-engine"
slaxemulator@7264 4 VERSION="4.0-20101114"
jozee@4552 5 CATEGORY="system-tools"
jozee@4552 6 SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database"
jozee@4552 7 MAINTAINER="jozee@slitaz.org"
jozee@4552 8 DEPENDS="ghostscript perl libxml2 foomatic-filters bash"
pascal@8937 9 BUILD_DEPENDS="cups-dev file"
jozee@4552 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@4552 11 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
jozee@4552 12 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
jozee@4936 13 TAGS="printer driver printing"
jozee@4552 14
jozee@4552 15 # Rules to configure and make the package.
jozee@4552 16 compile_rules()
jozee@4552 17 {
jozee@4552 18 mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION
slaxemulator@9678 19 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
jozee@4552 20 cd $src
jozee@4552 21 ./configure \
jozee@4552 22 --prefix=/usr \
jozee@4552 23 --sysconfdir=/etc \
jozee@4552 24 $CONFIGURE_ARGS &&
jozee@4552 25 make &&
jozee@4552 26 eval `perl -V:archname`
jozee@4552 27 make DESTDIR=$PWD/_pkg \
slaxemulator@9678 28 INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/${archname} \
slaxemulator@9678 29 INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
slaxemulator@9678 30 INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/${archname} install
jozee@4552 31
jozee@4552 32 }
jozee@4552 33
jozee@4552 34 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4552 35 genpkg_rules()
jozee@4552 36 {
jozee@4552 37 mkdir -p $fs/usr/share $fs/etc
jozee@4552 38 cp -a $_pkg/etc/foomatic $fs/etc
jozee@4552 39 cp -a $_pkg/usr/bin $fs/usr
jozee@4552 40 cp -a $_pkg/usr/sbin $fs/usr
jozee@4552 41 cp -a $_pkg/usr/lib $fs/usr
jozee@4552 42 cp -a $_pkg/usr/share/foomatic $fs/usr/share
jozee@4552 43
jozee@4552 44 }
jozee@4552 45
pascal@5912 46 pre_install()
pascal@5912 47 {
slaxemulator@9678 48 rm -rf $1/usr/lib/perl5/site_perl/current
pascal@5912 49 }