wok-next diff foomatic-db-engine/receipt @ rev 21013

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 14 05:29:23 2018 +0300 (2018-10-14)
parents 2c409915a36c
children d5aab818505e
line diff
     1.1 --- a/foomatic-db-engine/receipt	Tue Nov 07 15:55:13 2017 +0100
     1.2 +++ b/foomatic-db-engine/receipt	Sun Oct 14 05:29:23 2018 +0300
     1.3 @@ -1,50 +1,39 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="foomatic-db-engine"
     1.8 -VERSION="4.0-20101114" 
     1.9 +VERSION="4.0-20101114"
    1.10  CATEGORY="system-tools"
    1.11 -SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database"
    1.12 +SHORT_DESC="Database engine generates PPD files from the data in Foomatic's \
    1.13 +XML database"
    1.14  MAINTAINER="jozee@slitaz.org"
    1.15  LICENSE="GPL2"
    1.16 +WEB_SITE="http://www.linuxprinting.org/foomatic.html"
    1.17 +
    1.18  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.19 -WEB_SITE="http://www.linuxprinting.org/foomatic.html"
    1.20  WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
    1.21 -TAGS="printer driver printing"
    1.22  
    1.23 -DEPENDS="ghostscript perl libxml2 foomatic-filters bash"
    1.24  BUILD_DEPENDS="cups-dev file libxml2-dev perl"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 +compile_rules() {
    1.30  	PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
    1.31 -	cd $src
    1.32 -	./configure \
    1.33 -		--prefix=/usr \
    1.34 -		--sysconfdir=/etc \
    1.35 -		$CONFIGURE_ARGS &&
    1.36 +
    1.37 +	./configure $CONFIGURE_ARGS &&
    1.38  	make &&
    1.39 -	eval `perl -V:archname`
    1.40 -	make DESTDIR=$DESTDIR \
    1.41 -		INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/${archname} \
    1.42 -        INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
    1.43 -        INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/${archname} install
    1.44 -	
    1.45 +	eval $(perl -V:archname)
    1.46 +	make \
    1.47 +		DESTDIR=$DESTDIR \
    1.48 +		INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/$archname \
    1.49 +		INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
    1.50 +		INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/$archname \
    1.51 +		install
    1.52  }
    1.53  
    1.54 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.55 -genpkg_rules()
    1.56 -{
    1.57 -	mkdir -p $fs/usr/share $fs/etc
    1.58 -	cp -a $install/etc/foomatic $fs/etc
    1.59 -	cp -a $install/usr/bin $fs/usr	
    1.60 -	cp -a $install/usr/sbin $fs/usr	
    1.61 -	cp -a $install/usr/lib $fs/usr
    1.62 -	cp -a $install/usr/share/foomatic $fs/usr/share
    1.63 -	
    1.64 +genpkg_rules() {
    1.65 +	copy @std
    1.66 +	DEPENDS="ghostscript perl libxml2 foomatic-filters bash"
    1.67 +	TAGS="printer driver printing"
    1.68  }
    1.69  
    1.70 -pre_install()
    1.71 -{
    1.72 +pre_install() {
    1.73  	rm -rf "$1/usr/lib/perl5/site_perl/current"
    1.74  }