wok annotate foomatic-db-engine/receipt @ rev 8657
Up: libtaz 0.0.6.1; tazwok 0.0.6.2
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Feb 16 05:30:50 2011 +0100 (2011-02-16) |
parents | bf4ee34e64af |
children | a3ce54180620 |
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" |
jozee@4552 | 9 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev" |
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 |
jozee@4552 | 19 cd $src |
jozee@4552 | 20 ./configure \ |
jozee@4552 | 21 --prefix=/usr \ |
jozee@4552 | 22 --sysconfdir=/etc \ |
jozee@4552 | 23 $CONFIGURE_ARGS && |
jozee@4552 | 24 make && |
jozee@4552 | 25 eval `perl -V:archname` |
jozee@4552 | 26 make DESTDIR=$PWD/_pkg \ |
jozee@4552 | 27 INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \ |
jozee@4552 | 28 INSTALLSITELIB=/usr/lib/perl5/site_perl/current/ \ |
jozee@4552 | 29 INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} install |
jozee@4552 | 30 |
jozee@4552 | 31 } |
jozee@4552 | 32 |
jozee@4552 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4552 | 34 genpkg_rules() |
jozee@4552 | 35 { |
jozee@4552 | 36 mkdir -p $fs/usr/share $fs/etc |
jozee@4552 | 37 cp -a $_pkg/etc/foomatic $fs/etc |
jozee@4552 | 38 cp -a $_pkg/usr/bin $fs/usr |
jozee@4552 | 39 cp -a $_pkg/usr/sbin $fs/usr |
jozee@4552 | 40 cp -a $_pkg/usr/lib $fs/usr |
jozee@4552 | 41 cp -a $_pkg/usr/share/foomatic $fs/usr/share |
jozee@4552 | 42 |
jozee@4552 | 43 } |
jozee@4552 | 44 |
pascal@5912 | 45 pre_install() |
pascal@5912 | 46 { |
pascal@5912 | 47 rm -f $1/usr/lib/perl5/site_perl/current |
pascal@5912 | 48 } |
pascal@5912 | 49 |
pascal@5912 | 50 post_install() |
pascal@5912 | 51 { |
pascal@5912 | 52 # Move file to the right place |
pascal@5912 | 53 cp -a $1/usr/lib/perl5/site_perl/current/* $1/usr/lib/perl5/site_perl/*.* |
pascal@5912 | 54 rm -rf $1/usr/lib/perl5/site_perl/current |
pascal@5912 | 55 |
pascal@5912 | 56 # Keep path the remove the package |
pascal@5912 | 57 ( cd /usr/lib/perl5/site_perl ; ln -s * current ) |
pascal@5912 | 58 } |