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