wok-next view ufr2/receipt @ rev 21597
updated dosbox (0.74-2 -> 0.74.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 14:18:09 2020 +0100 (2020-06-24) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx"
11 SOURCE="UFR_II_Printer_Driver_for_Linux_V220_uk_EN"
12 TARBALL="$SOURCE.tar.gz"
13 WGET_URL="http://gdlp01.c-wss.com/gds/8/0100002708/03/$TARBALL"
15 BUILD_DEPENDS="autoconf automake cairo-dev gtk2-dev cndrvcups-common-dev cups-dev"
17 compile_rules() {
18 [ -d cndrvcups-lb-$VERSION ] || tar xzf Sources/cndrvcups-lb-$VERSION-1.tar.gz
20 cd $src/cndrvcups-lb-$VERSION/ppd &&
21 ./autogen.sh \
22 --prefix=/usr \
23 --enable-shared \
24 --disable-static \
25 --program-suffix="" \
26 --program-prefix="" &&
27 make $MAKEFLAGS &&
28 make DESTDIR=$install install
30 cd $src/cndrvcups-lb-$VERSION/pstoufr2cpca
31 ./autogen.sh \
32 --prefix=/usr \
33 --enable-progpath=/usr/bin \
34 --libdir=/usr/lib \
35 --program-suffix="" \
36 --program-prefix="" &&
37 make $MAKEFLAGS &&
38 make DESTDIR=$install install
39 }
41 genpkg_rules() {
42 mkdir -p \
43 $fs/usr/lib \
44 $fs/usr/share/caepcm \
45 $fs/usr/share/licenses/$PACKAGE \
46 $fs/usr/lib/cups/filter
48 cp -a $src/cndrvcups-lb-$VERSION/libs/*.so* $fs/usr/lib
49 cp -a $src/cndrvcups-lb-$VERSION/data/C* $fs/usr/share/caepcm
50 cp -a $install/usr/share/* $fs/usr/share/
51 cp -a $install/usr/lib/cups/filter $fs/usr/lib/cups/filter
53 # gzip all ppd files
54 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
56 # non-free license
57 cp -a $src/Documents/LICENSE-ufr2drv*.txt $fs/usr/share/licenses/$PACKAGE
59 cd $fs/usr/lib
60 ln -sf libcanonufr2.so.1.0.0 liblibcanonufr2.so.1
61 ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so
62 ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1
63 ln -sf libufr2filter.so.1.0.0 libufr2filter.so
64 DEPENDS="cups libcairo cndrvcups-common cups"
65 TAGS="printing printer driver"
66 }
68 pre_install() {
69 cat <<EOT
71 .--------------------------------------------------------.
72 | *** PROPRIETARY LICENSE *** |
73 |========================================================|
74 | You are installing a package with proprietary license. |
75 | You must accept the license. |
76 '--------------------------------------------------------'
77 EOT
78 }
80 post_install() {
81 cat <<EOT
83 .-------------------------------------------------------------------.
84 | *** CANON PRINTING LICENSE INFORMATION *** |
85 |===================================================================|
86 | For installing this package, you have to accept the ufr2 license. |
87 | The license is stored in /usr/share/licenses/ufr2 |
88 '-------------------------------------------------------------------'
89 EOT
91 echo -n "Would you like to read the license (y/N) : "; read answer
92 if [ "$answer" == "y" ]; then
93 cat "$1/usr/share/licenses/$PACKAGE/LICENSE" | more
94 echo ""
95 fi
97 echo "================================================================================"
98 echo -n "Do you accept the license (y/N) : "; read answer
99 if [ "$answer" = "N" ]; then
100 echo "You did not accept the license, removing the package..."
101 chroot "$1/" tazpkg remove "$PACKAGE"
102 fi
103 }