wok-next diff ufr2/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 7506b35e1c6f |
children | d5aab818505e |
line diff
1.1 --- a/ufr2/receipt Mon Aug 13 00:47:17 2018 +0300 1.2 +++ b/ufr2/receipt Tue Oct 16 16:46:05 2018 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="ufr2" 1.8 VERSION="2.20" 1.9 @@ -6,98 +6,93 @@ 1.10 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers" 1.11 MAINTAINER="jozee@slitaz.org" 1.12 LICENSE="GPL2" 1.13 +WEB_SITE="https://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx" 1.14 + 1.15 SOURCE="UFR_II_Printer_Driver_for_Linux_V220_uk_EN" 1.16 TARBALL="${SOURCE}.tar.gz" 1.17 -WEB_SITE="https://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx" 1.18 WGET_URL="http://gdlp01.c-wss.com/gds/8/0100002708/03/$TARBALL" 1.19 -TAGS="printing printer driver" 1.20 1.21 -DEPENDS="cups cairo cndrvcups-common cups" 1.22 -BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cndrvcups-common-dev cups-dev" 1.23 +BUILD_DEPENDS="autoconf automake cairo-dev gtk2-dev cndrvcups-common-dev cups-dev" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 +compile_rules() { 1.29 #src="$WOK/$PACKAGE/$SOURCE/Sources" 1.30 - cd $src 1.31 - 1.32 - [ -d cndrvcups-lb-$VERSION ] || tar xzf Sources/cndrvcups-lb-${VERSION}-1.tar.gz 1.33 - 1.34 - cd $src/cndrvcups-lb-$VERSION/ppd && 1.35 - ./autogen.sh \ 1.36 + cd $src 1.37 + 1.38 + [ -d cndrvcups-lb-$VERSION ] || tar xzf Sources/cndrvcups-lb-${VERSION}-1.tar.gz 1.39 + 1.40 + cd $src/cndrvcups-lb-$VERSION/ppd && 1.41 + ./autogen.sh \ 1.42 --prefix=/usr \ 1.43 --enable-shared \ 1.44 --disable-static \ 1.45 --program-suffix="" \ 1.46 - --program-prefix="" && 1.47 - make $MAKEFLAGS && 1.48 - make DESTDIR=$DESTDIR install 1.49 - 1.50 - cd $src/cndrvcups-lb-$VERSION/pstoufr2cpca 1.51 + --program-prefix="" && 1.52 + make $MAKEFLAGS && 1.53 + make DESTDIR=$DESTDIR install 1.54 + 1.55 + cd $src/cndrvcups-lb-$VERSION/pstoufr2cpca 1.56 ./autogen.sh \ 1.57 - --prefix=/usr \ 1.58 + --prefix=/usr \ 1.59 --enable-progpath=/usr/bin \ 1.60 --libdir=/usr/lib \ 1.61 --program-suffix="" \ 1.62 - --program-prefix="" && 1.63 + --program-prefix="" && 1.64 make $MAKEFLAGS && 1.65 - make DESTDIR=$DESTDIR install 1.66 + make DESTDIR=$DESTDIR install 1.67 } 1.68 - 1.69 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.70 -genpkg_rules() 1.71 -{ 1.72 + 1.73 +genpkg_rules() { 1.74 mkdir -p \ 1.75 $fs/usr/lib \ 1.76 $fs/usr/share/caepcm \ 1.77 $fs/usr/share/licenses/$PACKAGE \ 1.78 $fs/usr/lib/cups/filter 1.79 - 1.80 + 1.81 cp -a $src/cndrvcups-lb-$VERSION/libs/*.so* $fs/usr/lib 1.82 cp -a $src/cndrvcups-lb-$VERSION/data/C* $fs/usr/share/caepcm 1.83 cp -a $install/usr/share/* $fs/usr/share/ 1.84 cp -a $install/usr/lib/cups/filter $fs/usr/lib/cups/filter 1.85 - 1.86 + 1.87 # gzip all ppd files 1.88 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9 1.89 1.90 # non-free license 1.91 cp -a $src/Documents/LICENSE-ufr2drv*.txt $fs/usr/share/licenses/$PACKAGE 1.92 - 1.93 + 1.94 cd $fs/usr/lib 1.95 ln -sf libcanonufr2.so.1.0.0 liblibcanonufr2.so.1 1.96 ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so 1.97 ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1 1.98 ln -sf libufr2filter.so.1.0.0 libufr2filter.so 1.99 + DEPENDS="cups cairo cndrvcups-common cups" 1.100 + TAGS="printing printer driver" 1.101 } 1.102 1.103 -pre_install() 1.104 -{ 1.105 +pre_install() { 1.106 echo "" 1.107 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2" 1.108 echo "================================================================================" 1.109 echo "You are installing a package with proprietary license." 1.110 echo "You must accept the license." 1.111 - echo "================================================================================" 1.112 - echo "" 1.113 + echo "================================================================================" 1.114 + echo "" 1.115 } 1.116 1.117 -post_install() 1.118 -{ 1.119 +post_install() { 1.120 echo "" 1.121 echo -e "\033[1m CANON PRINTING LICENSE INFORMATION:\033[0m $2" 1.122 echo "================================================================================" 1.123 echo "For installing this package, you have to accept the $PACKAGE license." 1.124 - echo "The license is stored in /usr/share/licenses/$PACKAGE " 1.125 - echo -n "Would you like to read the license (y/N) : "; read anser 1.126 - if [ "$anser" = "y" ]; then 1.127 - cat "$1/usr/share/licenses/$PACKAGE/LICENSE" | more 1.128 - echo "" 1.129 + echo "The license is stored in /usr/share/licenses/$PACKAGE " 1.130 + echo -n "Would you like to read the license (y/N) : "; read anser 1.131 + if [ "$anser" = "y" ]; then 1.132 + cat "$1/usr/share/licenses/$PACKAGE/LICENSE" | more 1.133 + echo "" 1.134 fi 1.135 echo "================================================================================" 1.136 - echo -n "Do you accept the license (y/N) : "; read anser 1.137 - if [ "$anser" = "N" ]; then 1.138 - echo "You did not accept the license, Removing the pkg." 1.139 - chroot "$1/" tazpkg remove "$PACKAGE" 1.140 + echo -n "Do you accept the license (y/N) : "; read anser 1.141 + if [ "$anser" = "N" ]; then 1.142 + echo "You did not accept the license, Removing the pkg." 1.143 + chroot "$1/" tazpkg remove "$PACKAGE" 1.144 fi 1.145 }