wok view ufr2/receipt @ rev 13921

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