wok view foomatic-db-engine/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents bfabe25c21ff
children
line source
1 # SliTaz package receipt.
3 PACKAGE="foomatic-db-engine"
4 VERSION="4.0.13"
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
11 WGET_URL="https://www.openprinting.org/download/foomatic/$TARBALL"
12 TAGS="printer driver printing"
14 DEPENDS="ghostscript perl libxml2 foomatic-filters bash"
15 BUILD_DEPENDS="cups-dev file libxml2-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
28 cd $src
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS &&
33 make &&
34 eval `perl -V:archname`
35 make DESTDIR=$DESTDIR \
36 INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/${archname} \
37 INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
38 INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/${archname} install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share $fs/etc
46 cp -a $install/etc/foomatic $fs/etc
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/sbin $fs/usr
49 cp -a $install/usr/lib $fs/usr
50 cp -a $install/usr/share/foomatic $fs/usr/share
52 }
54 pre_install()
55 {
56 rm -rf "$1/usr/lib/perl5/site_perl/current"
57 }