wok-stable diff ufr2/receipt @ rev 11168
ftgl: Clean up.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Nov 02 07:12:20 2011 +0000 (2011-11-02) |
parents | c161b9c835d2 |
children | 8e4c74abdf74 |
line diff
1.1 --- a/ufr2/receipt Fri Jul 09 20:33:27 2010 +0200 1.2 +++ b/ufr2/receipt Wed Nov 02 07:12:20 2011 +0000 1.3 @@ -1,79 +1,73 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="ufr2" 1.7 -VERSION="1.80" 1.8 +VERSION="2.20" 1.9 CATEGORY="system-tools" 1.10 MAINTAINER="jozee@slitaz.org" 1.11 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers" 1.12 +SOURCE="UFR_II_Printer_Driver_for_Linux_V220_uk_EN" 1.13 +TARBALL="${SOURCE}.tar.gz" 1.14 WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx" 1.15 -DEPENDS="cups cairo cndrvcups-common" 1.16 -BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cndrvcups-common-dev" 1.17 -SOURCE="ufr2linuxv180" 1.18 -TARBALL="${SOURCE}.zip" 1.19 -WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL" 1.20 +WGET_URL="http://gdlp01.c-wss.com/gds/8/0100002708/03/$TARBALL" 1.21 TAGS="printing printer drivers" 1.22 1.23 +DEPENDS="cups cairo cndrvcups-common cups" 1.24 +BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cndrvcups-common-dev cups-dev" 1.25 + 1.26 # Rules to configure and make the package. 1.27 - 1.28 -compile_rules() { 1.29 - 1.30 - src="$WOK/$PACKAGE/$SOURCE/Sources" 1.31 +compile_rules() 1.32 +{ 1.33 + #src="$WOK/$PACKAGE/$SOURCE/Sources" 1.34 cd $src 1.35 1.36 - [ -d cndrvcups-lb-$VERSION ] || tar xzf cndrvcups-lb-${VERSION}-1.tar.gz 1.37 + [ -d cndrvcups-lb-$VERSION ] || tar xzf Sources/cndrvcups-lb-${VERSION}-1.tar.gz 1.38 1.39 cd $src/cndrvcups-lb-$VERSION/ppd && 1.40 - ./autogen.sh --prefix=/usr \ 1.41 - --enable-shared \ 1.42 - --disable-static \ 1.43 - --program-suffix="" \ 1.44 - --program-prefix="" && 1.45 + ./autogen.sh \ 1.46 + --prefix=/usr \ 1.47 + --enable-shared \ 1.48 + --disable-static \ 1.49 + --program-suffix="" \ 1.50 + --program-prefix="" && 1.51 make -j 4 && 1.52 - make DESTDIR=$PWD/_pkg install 1.53 + make DESTDIR=$DESTDIR install 1.54 1.55 cd $src/cndrvcups-lb-$VERSION/pstoufr2cpca 1.56 - ./autogen.sh --prefix=/usr \ 1.57 - --enable-progpath=/usr/bin \ 1.58 - --libdir=/usr/lib \ 1.59 - --program-suffix="" \ 1.60 - --program-prefix="" && 1.61 + ./autogen.sh \ 1.62 + --prefix=/usr \ 1.63 + --enable-progpath=/usr/bin \ 1.64 + --libdir=/usr/lib \ 1.65 + --program-suffix="" \ 1.66 + --program-prefix="" && 1.67 make -j 4 && 1.68 - make DESTDIR=$PWD/_pkg install 1.69 - 1.70 + make DESTDIR=$DESTDIR install 1.71 } 1.72 1.73 # Rules to gen a SliTaz package suitable for Tazpkg. 1.74 genpkg_rules() 1.75 { 1.76 - mkdir -p $fs/usr/lib \ 1.77 - $fs/usr/share/caepcm \ 1.78 - $fs/usr/share/licenses/$PACKAGE \ 1.79 - $fs/usr/lib/cups/filter 1.80 - 1.81 + mkdir -p \ 1.82 + $fs/usr/lib \ 1.83 + $fs/usr/share/caepcm \ 1.84 + $fs/usr/share/licenses/$PACKAGE \ 1.85 + $fs/usr/lib/cups/filter 1.86 1.87 - _pkg="$WOK/$PACKAGE/$SOURCE/Sources" 1.88 - 1.89 - cp -a $_pkg/cndrvcups-lb-$VERSION/libs/*.so* $fs/usr/lib 1.90 - cp -a $_pkg/cndrvcups-lb-$VERSION/data/C* $fs/usr/share/caepcm 1.91 - cp -a $_pkg/cndrvcups-lb-$VERSION/ppd/_pkg/usr/share/* $fs/usr/share/ 1.92 - cp -a $_pkg/cndrvcups-lb-$VERSION/pstoufr2cpca/_pkg/usr/lib/cups/filter $fs/usr/lib/cups/filter 1.93 + cp -a $src/cndrvcups-lb-$VERSION/libs/*.so* $fs/usr/lib 1.94 + cp -a $src/cndrvcups-lb-$VERSION/data/C* $fs/usr/share/caepcm 1.95 + cp -a $install/usr/share/* $fs/usr/share/ 1.96 + cp -a $install/usr/lib/cups/filter $fs/usr/lib/cups/filter 1.97 1.98 # gzip all ppd files 1.99 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9 1.100 - 1.101 + 1.102 + # non-free license 1.103 + cp -a $src/Documents/LICENSE-ufr2drv*.txt $fs/usr/share/licenses/$PACKAGE 1.104 1.105 - 1.106 - # non-free license 1.107 - cp -a $_pkg/cndrvcups-lb-$VERSION/LICENSE-ufr2-1.80E.txt $fs/usr/share/licenses/$PACKAGE 1.108 - 1.109 - cd $fs/usr/lib 1.110 - ln -sf libcanonufr2.so.1.0.0 liblibcanonufr2.so.1 1.111 - ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so 1.112 - 1.113 - ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1 1.114 - ln -sf libufr2filter.so.1.0.0 libufr2filter.so 1.115 - 1.116 - 1.117 + cd $fs/usr/lib 1.118 + ln -sf libcanonufr2.so.1.0.0 liblibcanonufr2.so.1 1.119 + ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so 1.120 + ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1 1.121 + ln -sf libufr2filter.so.1.0.0 libufr2filter.so 1.122 } 1.123 1.124 pre_install() 1.125 @@ -85,7 +79,6 @@ 1.126 echo "You must accept the license." 1.127 echo "================================================================================" 1.128 echo "" 1.129 - 1.130 } 1.131 1.132 post_install() 1.133 @@ -106,5 +99,4 @@ 1.134 echo "You did not accept the license, Removing the pkg." 1.135 tazpkg remove "$PACKAGE" 1.136 fi 1.137 - 1.138 }