wok-stable annotate ufr2/receipt @ rev 6244

Up: libtorrent, libtorrent-dev to 0.12.6. rtorrent to 0.8.6.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Sep 12 14:30:08 2010 +0000 (2010-09-12)
parents 3115c291f303
children cd3b8f4f8405
rev   line source
jozee@4556 1 # SliTaz package receipt.
jozee@4556 2
jozee@4556 3 PACKAGE="ufr2"
jozee@4556 4 VERSION="1.80"
jozee@4556 5 CATEGORY="system-tools"
jozee@4556 6 MAINTAINER="jozee@slitaz.org"
jozee@4556 7 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers"
jozee@4556 8 WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx"
jozee@4556 9 DEPENDS="cups cairo cndrvcups-common"
jozee@4556 10 BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cndrvcups-common-dev"
jozee@4556 11 SOURCE="ufr2linuxv180"
jozee@4556 12 TARBALL="${SOURCE}.zip"
jozee@4556 13 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL"
jozee@4974 14 TAGS="printing printer drivers"
jozee@4556 15
jozee@4556 16 # Rules to configure and make the package.
jozee@4556 17
jozee@4556 18 compile_rules() {
jozee@4556 19
jozee@4556 20 src="$WOK/$PACKAGE/$SOURCE/Sources"
jozee@4556 21 cd $src
jozee@4556 22
jozee@4556 23 [ -d cndrvcups-lb-$VERSION ] || tar xzf cndrvcups-lb-${VERSION}-1.tar.gz
jozee@4556 24
jozee@4556 25 cd $src/cndrvcups-lb-$VERSION/ppd &&
jozee@4556 26 ./autogen.sh --prefix=/usr \
jozee@4556 27 --enable-shared \
jozee@4556 28 --disable-static \
jozee@4556 29 --program-suffix="" \
jozee@4556 30 --program-prefix="" &&
pascal@5778 31 make -j 4 &&
jozee@4556 32 make DESTDIR=$PWD/_pkg install
jozee@4556 33
jozee@4556 34 cd $src/cndrvcups-lb-$VERSION/pstoufr2cpca
jozee@4556 35 ./autogen.sh --prefix=/usr \
jozee@4556 36 --enable-progpath=/usr/bin \
jozee@4556 37 --libdir=/usr/lib \
jozee@4556 38 --program-suffix="" \
jozee@4556 39 --program-prefix="" &&
pascal@5778 40 make -j 4 &&
jozee@4556 41 make DESTDIR=$PWD/_pkg install
jozee@4556 42
jozee@4556 43 }
jozee@4556 44
jozee@4556 45 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4556 46 genpkg_rules()
jozee@4556 47 {
jozee@4556 48 mkdir -p $fs/usr/lib \
jozee@4556 49 $fs/usr/share/caepcm \
jozee@4556 50 $fs/usr/share/licenses/$PACKAGE \
jozee@4556 51 $fs/usr/lib/cups/filter
jozee@4556 52
jozee@4556 53
jozee@4556 54 _pkg="$WOK/$PACKAGE/$SOURCE/Sources"
jozee@4556 55
jozee@4556 56 cp -a $_pkg/cndrvcups-lb-$VERSION/libs/*.so* $fs/usr/lib
jozee@4556 57 cp -a $_pkg/cndrvcups-lb-$VERSION/data/C* $fs/usr/share/caepcm
jozee@4556 58 cp -a $_pkg/cndrvcups-lb-$VERSION/ppd/_pkg/usr/share/* $fs/usr/share/
jozee@4556 59 cp -a $_pkg/cndrvcups-lb-$VERSION/pstoufr2cpca/_pkg/usr/lib/cups/filter $fs/usr/lib/cups/filter
jozee@4556 60
jozee@4556 61 # gzip all ppd files
jozee@4556 62 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
jozee@4556 63
jozee@4556 64
jozee@4556 65
jozee@4556 66 # non-free license
jozee@4556 67 cp -a $_pkg/cndrvcups-lb-$VERSION/LICENSE-ufr2-1.80E.txt $fs/usr/share/licenses/$PACKAGE
jozee@4556 68
jozee@4556 69 cd $fs/usr/lib
jozee@4556 70 ln -sf libcanonufr2.so.1.0.0 liblibcanonufr2.so.1
jozee@4556 71 ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so
jozee@4556 72
jozee@4556 73 ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1
jozee@4556 74 ln -sf libufr2filter.so.1.0.0 libufr2filter.so
jozee@4556 75
jozee@4556 76
jozee@4556 77 }
jozee@4556 78
jozee@4556 79 pre_install()
jozee@4556 80 {
jozee@4556 81 echo ""
jozee@4556 82 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
jozee@4556 83 echo "================================================================================"
jozee@4556 84 echo "You are installing a package with proprietary license."
jozee@4556 85 echo "You must accept the license."
jozee@4556 86 echo "================================================================================"
jozee@4556 87 echo ""
jozee@4556 88
jozee@4556 89 }
jozee@4556 90
jozee@4556 91 post_install()
jozee@4556 92 {
jozee@4556 93 echo ""
jozee@4556 94 echo -e "\033[1m CANON PRINTING LICENSE INFORMATION:\033[0m $2"
jozee@4556 95 echo "================================================================================"
jozee@4556 96 echo "For installing this package, you have to accept the $PACKAGE license."
jozee@4556 97 echo "The license is stored in /usr/share/licenses/$PACKAGE "
jozee@4556 98 echo -n "Would you like to read the license (y/N) : "; read anser
jozee@4556 99 if [ "$anser" = "y" ]; then
jozee@4556 100 cat /usr/share/licenses/"$PACKAGE"/LICENSE | more
jozee@4556 101 echo ""
jozee@4556 102 fi
jozee@4556 103 echo "================================================================================"
jozee@4556 104 echo -n "Do you accept the license (y/N) : "; read anser
jozee@4556 105 if [ "$anser" = "N" ]; then
jozee@4556 106 echo "You did not accept the license, Removing the pkg."
jozee@4556 107 tazpkg remove "$PACKAGE"
jozee@4556 108 fi
jozee@4556 109
jozee@4556 110 }