wok-current view foomatic-db-engine/receipt @ rev 8355

Fix: xorg-xf86-video-intel needs xcb-util to have 3d support.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Feb 03 11:34:07 2011 +0000 (2011-02-03)
parents bf4ee34e64af
children a3ce54180620
line source
1 # SliTaz package receipt.
3 PACKAGE="foomatic-db-engine"
4 VERSION="4.0-20101114"
5 CATEGORY="system-tools"
6 SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="ghostscript perl libxml2 foomatic-filters bash"
9 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
12 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
13 TAGS="printer driver printing"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 $CONFIGURE_ARGS &&
24 make &&
25 eval `perl -V:archname`
26 make DESTDIR=$PWD/_pkg \
27 INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
28 INSTALLSITELIB=/usr/lib/perl5/site_perl/current/ \
29 INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share $fs/etc
37 cp -a $_pkg/etc/foomatic $fs/etc
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/sbin $fs/usr
40 cp -a $_pkg/usr/lib $fs/usr
41 cp -a $_pkg/usr/share/foomatic $fs/usr/share
43 }
45 pre_install()
46 {
47 rm -f $1/usr/lib/perl5/site_perl/current
48 }
50 post_install()
51 {
52 # Move file to the right place
53 cp -a $1/usr/lib/perl5/site_perl/current/* $1/usr/lib/perl5/site_perl/*.*
54 rm -rf $1/usr/lib/perl5/site_perl/current
56 # Keep path the remove the package
57 ( cd /usr/lib/perl5/site_perl ; ln -s * current )
58 }