wok-6.x annotate foomatic-db-engine/receipt @ rev 15258

suricata: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 24 09:54:56 2013 +0000 (2013-09-24)
parents 3fc93ab80332
children 9e01bc6321ea
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"
pascal@15073 8 LICENSE="GPL2"
jozee@4552 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@4552 10 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
jozee@4552 11 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
jozee@4936 12 TAGS="printer driver printing"
jozee@4552 13
pascal@15073 14 DEPENDS="ghostscript perl libxml2 foomatic-filters bash"
pascal@15073 15 BUILD_DEPENDS="cups-dev file libxml2-dev"
pascal@15073 16
jozee@4552 17 # Rules to configure and make the package.
jozee@4552 18 compile_rules()
jozee@4552 19 {
slaxemulator@9678 20 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
jozee@4552 21 cd $src
jozee@4552 22 ./configure \
jozee@4552 23 --prefix=/usr \
jozee@4552 24 --sysconfdir=/etc \
jozee@4552 25 $CONFIGURE_ARGS &&
jozee@4552 26 make &&
jozee@4552 27 eval `perl -V:archname`
pascal@15073 28 make DESTDIR=$DESTDIR \
slaxemulator@9678 29 INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/${archname} \
slaxemulator@9678 30 INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
slaxemulator@9678 31 INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/${archname} install
jozee@4552 32
jozee@4552 33 }
jozee@4552 34
jozee@4552 35 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4552 36 genpkg_rules()
jozee@4552 37 {
jozee@4552 38 mkdir -p $fs/usr/share $fs/etc
pascal@15073 39 cp -a $install/etc/foomatic $fs/etc
pascal@15073 40 cp -a $install/usr/bin $fs/usr
pascal@15073 41 cp -a $install/usr/sbin $fs/usr
pascal@15073 42 cp -a $install/usr/lib $fs/usr
pascal@15073 43 cp -a $install/usr/share/foomatic $fs/usr/share
jozee@4552 44
jozee@4552 45 }
jozee@4552 46
pascal@5912 47 pre_install()
pascal@5912 48 {
slaxemulator@9678 49 rm -rf $1/usr/lib/perl5/site_perl/current
pascal@5912 50 }