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