wok-4.x view foomatic-db-engine/receipt @ rev 12466
New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.23.1
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Nov 09 15:12:00 2022 +0000 (2022-11-09) |
parents | a3ce54180620 |
children |
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="cups-dev file"
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 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 $CONFIGURE_ARGS &&
25 make &&
26 eval `perl -V:archname`
27 make DESTDIR=$PWD/_pkg \
28 INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/${archname} \
29 INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
30 INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/${archname} install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share $fs/etc
38 cp -a $_pkg/etc/foomatic $fs/etc
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/sbin $fs/usr
41 cp -a $_pkg/usr/lib $fs/usr
42 cp -a $_pkg/usr/share/foomatic $fs/usr/share
44 }
46 pre_install()
47 {
48 rm -rf $1/usr/lib/perl5/site_perl/current
49 }