wok-next diff foomatic-db-nonfree/receipt @ rev 20889

Check Repology info from y* to z* packages: complete
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 15 10:27:39 2018 +0300 (2018-07-15)
parents 9e01bc6321ea
children d5aab818505e
line diff
     1.1 --- a/foomatic-db-nonfree/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/foomatic-db-nonfree/receipt	Sun Jul 15 10:27:39 2018 +0300
     1.3 @@ -1,74 +1,75 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="foomatic-db-nonfree"
     1.8 -VERSION="20101114" 
     1.9 +VERSION="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="other"
    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="perl libxml2 foomatic-db"
    1.24  BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 -	cd $src
    1.30 -	./configure \
    1.31 -		--prefix=/usr \
    1.32 -		--sysconfdir=/etc \
    1.33 -		$CONFIGURE_ARGS &&
    1.34 +compile_rules() {
    1.35 +	./configure $CONFIGURE_ARGS &&
    1.36  	make &&
    1.37 -	make DESTDIR=$DESTDIR  install
    1.38 -	
    1.39 +	make DESTDIR=$DESTDIR install || return 1
    1.40 +
    1.41 +	# gzip all ppd files
    1.42 +	find $install/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9
    1.43 +
    1.44 +	# include non-free license
    1.45 +	cp -a $src/COPYING $install/usr/share/licenses/$PACKAGE/
    1.46 +
    1.47 +	chown -R root:root $install
    1.48  }
    1.49  
    1.50 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.51 -genpkg_rules()
    1.52 -{
    1.53 -	mkdir -p $fs/usr/share/licenses/$PACKAGE/
    1.54 -	cp -a $install/usr/share/foomatic $fs/usr/share
    1.55 -	
    1.56 -	# gzip all ppd files
    1.57 -	find $fs/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9
    1.58 -	
    1.59 -	# include non-free license
    1.60 -	cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE/
    1.61 -	
    1.62 +genpkg_rules() {
    1.63 +	copy @std
    1.64 +	DEPENDS="perl libxml2 foomatic-db"
    1.65 +	TAGS="printer driver printing"
    1.66  }
    1.67  
    1.68 -pre_install()
    1.69 -{
    1.70 -	echo ""
    1.71 -	echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
    1.72 -	echo "================================================================================"
    1.73 -	echo "You are installing a package with proprietary license."
    1.74 -	echo "You must accept the license."
    1.75 -    echo "================================================================================"
    1.76 -    echo ""
    1.77 -	
    1.78 +pre_install() {
    1.79 +	cat <<EOT
    1.80 +
    1.81 +	.--------------------------------------------------------.
    1.82 +	| PROPRIETARY LICENSE:                                   |
    1.83 +	|--------------------------------------------------------|
    1.84 +	| You are installing a package with proprietary license. |
    1.85 +	| You must accept the license.                           |
    1.86 +	'--------------------------------------------------------'
    1.87 +
    1.88 +EOT
    1.89  }
    1.90  
    1.91 -post_install()
    1.92 -{
    1.93 -	echo ""
    1.94 -	echo -e "\033[1m FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:\033[0m $2"
    1.95 -	echo "================================================================================"
    1.96 -	echo "For installing this package, you have to accept the $PACKAGE license."
    1.97 -    echo "The license is stored in /usr/share/licenses/$PACKAGE "    
    1.98 -    echo -n "Would you like to read the license (y/N) : "; read anser
    1.99 -    if [ "$anser" = "y" ]; then
   1.100 +post_install() {
   1.101 +	cat <<EOT
   1.102 +
   1.103 +	.-----------------------------------------------------.
   1.104 +	| FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:     |
   1.105 +	|-----------------------------------------------------|
   1.106 +	| For installing this package, you have to accept the |
   1.107 +	| foomatic-db-nonfree package license.                |
   1.108 +	| The license is stored in                            |
   1.109 +	| /usr/share/licenses/foomatic-db-nonfree/            |
   1.110 +	'-----------------------------------------------------'
   1.111 +EOT
   1.112 +
   1.113 +	echo -n "Would you like to read the license (y/N) : "; read anser
   1.114 +	if [ "$anser" == "y" ]; then
   1.115  		more < "$1/usr/share/licenses/$PACKAGE/COPYING"
   1.116 -		echo "" 		
   1.117 +		echo ""
   1.118  	fi
   1.119 -	echo "================================================================================"
   1.120 -	 echo -n "Do you accept the license (y/N) : "; read anser
   1.121 -    if [ "$anser" = "N" ]; then
   1.122 -		echo "You did not accept the license, Removing the pkg."	
   1.123 -		chroot "$1/" tazpkg remove "$PACKAGE"		
   1.124 +
   1.125 +	separator '='
   1.126 +	echo -n "Do you accept the license (y/N) : "; read anser
   1.127 +	if [ "$anser" == "N" ]; then
   1.128 +		echo "You did not accept the license, Removing the pkg."
   1.129 +		chroot "$1/" tazpkg remove "$PACKAGE"
   1.130  	fi
   1.131  }