wok-current rev 4552

Add foomatic-db-engine
author Rohit Joshi <jozee@slitaz.org>
date Fri Dec 04 13:24:23 2009 +0000 (2009-12-04)
parents 405d8edddaf0
children 2a1979cb49a1
files foomatic-db-engine/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/foomatic-db-engine/receipt	Fri Dec 04 13:24:23 2009 +0000
     1.3 @@ -0,0 +1,43 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="foomatic-db-engine"
     1.7 +VERSION="4.0-current" 
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database"
    1.10 +MAINTAINER="jozee@slitaz.org"
    1.11 +DEPENDS="ghostscript perl libxml2 foomatic-filters bash"
    1.12 +BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.linuxprinting.org/foomatic.html"
    1.15 +WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION
    1.21 +	cd $src
    1.22 +	./configure \
    1.23 +		--prefix=/usr \
    1.24 +		--sysconfdir=/etc \
    1.25 +		$CONFIGURE_ARGS &&
    1.26 +	make &&
    1.27 +	eval `perl -V:archname`
    1.28 +	make DESTDIR=$PWD/_pkg \
    1.29 +		INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
    1.30 +        INSTALLSITELIB=/usr/lib/perl5/site_perl/current/ \
    1.31 +        INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} install
    1.32 +	
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +	mkdir -p $fs/usr/share $fs/etc
    1.39 +	cp -a $_pkg/etc/foomatic $fs/etc
    1.40 +	cp -a $_pkg/usr/bin $fs/usr	
    1.41 +	cp -a $_pkg/usr/sbin $fs/usr	
    1.42 +	cp -a $_pkg/usr/lib $fs/usr
    1.43 +	cp -a $_pkg/usr/share/foomatic $fs/usr/share
    1.44 +	
    1.45 +}
    1.46 +