wok-next diff ufr2/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 82b613cfd1e0 |
line diff
1.1 --- a/ufr2/receipt Tue Oct 16 16:46:05 2018 +0300 1.2 +++ b/ufr2/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -4,21 +4,18 @@ 1.4 VERSION="2.20" 1.5 CATEGORY="system-tools" 1.6 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers" 1.7 -MAINTAINER="jozee@slitaz.org" 1.8 +MAINTAINER="devel@slitaz.org" 1.9 LICENSE="GPL2" 1.10 WEB_SITE="https://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx" 1.11 1.12 SOURCE="UFR_II_Printer_Driver_for_Linux_V220_uk_EN" 1.13 -TARBALL="${SOURCE}.tar.gz" 1.14 +TARBALL="$SOURCE.tar.gz" 1.15 WGET_URL="http://gdlp01.c-wss.com/gds/8/0100002708/03/$TARBALL" 1.16 1.17 BUILD_DEPENDS="autoconf automake cairo-dev gtk2-dev cndrvcups-common-dev cups-dev" 1.18 1.19 compile_rules() { 1.20 - #src="$WOK/$PACKAGE/$SOURCE/Sources" 1.21 - cd $src 1.22 - 1.23 - [ -d cndrvcups-lb-$VERSION ] || tar xzf Sources/cndrvcups-lb-${VERSION}-1.tar.gz 1.24 + [ -d cndrvcups-lb-$VERSION ] || tar xzf Sources/cndrvcups-lb-$VERSION-1.tar.gz 1.25 1.26 cd $src/cndrvcups-lb-$VERSION/ppd && 1.27 ./autogen.sh \ 1.28 @@ -28,7 +25,7 @@ 1.29 --program-suffix="" \ 1.30 --program-prefix="" && 1.31 make $MAKEFLAGS && 1.32 - make DESTDIR=$DESTDIR install 1.33 + make DESTDIR=$install install 1.34 1.35 cd $src/cndrvcups-lb-$VERSION/pstoufr2cpca 1.36 ./autogen.sh \ 1.37 @@ -38,7 +35,7 @@ 1.38 --program-suffix="" \ 1.39 --program-prefix="" && 1.40 make $MAKEFLAGS && 1.41 - make DESTDIR=$DESTDIR install 1.42 + make DESTDIR=$install install 1.43 } 1.44 1.45 genpkg_rules() { 1.46 @@ -69,30 +66,38 @@ 1.47 } 1.48 1.49 pre_install() { 1.50 - echo "" 1.51 - echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2" 1.52 - echo "================================================================================" 1.53 - echo "You are installing a package with proprietary license." 1.54 - echo "You must accept the license." 1.55 - echo "================================================================================" 1.56 - echo "" 1.57 + cat <<EOT 1.58 + 1.59 + .--------------------------------------------------------. 1.60 + | *** PROPRIETARY LICENSE *** | 1.61 + |========================================================| 1.62 + | You are installing a package with proprietary license. | 1.63 + | You must accept the license. | 1.64 + '--------------------------------------------------------' 1.65 +EOT 1.66 } 1.67 1.68 post_install() { 1.69 - echo "" 1.70 - echo -e "\033[1m CANON PRINTING LICENSE INFORMATION:\033[0m $2" 1.71 - echo "================================================================================" 1.72 - echo "For installing this package, you have to accept the $PACKAGE license." 1.73 - echo "The license is stored in /usr/share/licenses/$PACKAGE " 1.74 - echo -n "Would you like to read the license (y/N) : "; read anser 1.75 - if [ "$anser" = "y" ]; then 1.76 + cat <<EOT 1.77 + 1.78 + .-------------------------------------------------------------------. 1.79 + | *** CANON PRINTING LICENSE INFORMATION *** | 1.80 + |===================================================================| 1.81 + | For installing this package, you have to accept the ufr2 license. | 1.82 + | The license is stored in /usr/share/licenses/ufr2 | 1.83 + '-------------------------------------------------------------------' 1.84 +EOT 1.85 + 1.86 + echo -n "Would you like to read the license (y/N) : "; read answer 1.87 + if [ "$answer" == "y" ]; then 1.88 cat "$1/usr/share/licenses/$PACKAGE/LICENSE" | more 1.89 echo "" 1.90 fi 1.91 + 1.92 echo "================================================================================" 1.93 - echo -n "Do you accept the license (y/N) : "; read anser 1.94 - if [ "$anser" = "N" ]; then 1.95 - echo "You did not accept the license, Removing the pkg." 1.96 + echo -n "Do you accept the license (y/N) : "; read answer 1.97 + if [ "$answer" = "N" ]; then 1.98 + echo "You did not accept the license, removing the package..." 1.99 chroot "$1/" tazpkg remove "$PACKAGE" 1.100 fi 1.101 }