wok-next annotate foomatic-db-engine/receipt @ rev 21156

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 02 16:32:35 2019 +0200 (2019-02-02)
parents d5aab818505e
children
rev   line source
al@20534 1 # SliTaz package receipt v2.
jozee@4552 2
jozee@4552 3 PACKAGE="foomatic-db-engine"
al@20534 4 VERSION="4.0-20101114"
jozee@4552 5 CATEGORY="system-tools"
al@20534 6 SHORT_DESC="Database engine generates PPD files from the data in Foomatic's \
al@20534 7 XML database"
al@21020 8 MAINTAINER="devel@slitaz.org"
pascal@15073 9 LICENSE="GPL2"
al@21020 10 WEB_SITE="https://wiki.linuxfoundation.org/openprinting/database/foomatic"
al@20534 11
jozee@4552 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@4552 13 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
jozee@4552 14
pascal@20256 15 BUILD_DEPENDS="cups-dev file libxml2-dev perl"
al@21111 16 DEPENDS="ghostscript perl libxml2 foomatic-filters bash"
al@21111 17
al@21111 18 TAGS="printer driver printing"
pascal@15073 19
al@20534 20 compile_rules() {
slaxemulator@9678 21 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
al@20534 22
al@20534 23 ./configure $CONFIGURE_ARGS &&
jozee@4552 24 make &&
al@20534 25 eval $(perl -V:archname)
al@20534 26 make \
al@21020 27 DESTDIR=$install \
al@20534 28 INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/$archname \
al@20534 29 INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
al@20534 30 INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/$archname \
al@21111 31 install || return 1
al@21111 32
al@21111 33 find $install -type f -name '*.pm' -exec chmod u+w '{}' \; # 444->644
al@21111 34 fix symlinks
jozee@4552 35 }
jozee@4552 36
al@21111 37 #pre_install() {
al@21111 38 # rm -rf "$1/usr/lib/perl5/site_perl/current"
al@21111 39 #}