wok-current annotate ufr2/receipt @ rev 24841

updated libuninameslist and libuninameslist-dev (20190701 -> 20211114)
author Hans-G?nter Theisgen
date Fri Mar 25 09:32:35 2022 +0100 (2022-03-25)
parents 18c66805dd1a
children 2b0142c9f248
rev   line source
jozee@4556 1 # SliTaz package receipt.
jozee@4556 2
jozee@4556 3 PACKAGE="ufr2"
pankso@10689 4 VERSION="2.20"
jozee@4556 5 CATEGORY="system-tools"
pascal@15216 6 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers"
jozee@4556 7 MAINTAINER="jozee@slitaz.org"
pascal@15216 8 LICENSE="GPL2"
pankso@10689 9 SOURCE="UFR_II_Printer_Driver_for_Linux_V220_uk_EN"
pankso@10689 10 TARBALL="${SOURCE}.tar.gz"
pascal@20905 11 WEB_SITE="https://web.archive.org/web/20091013040714/https://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx"
pankso@10689 12 WGET_URL="http://gdlp01.c-wss.com/gds/8/0100002708/03/$TARBALL"
pascal@14528 13 TAGS="printing printer driver"
jozee@4556 14
pankso@10689 15 DEPENDS="cups cairo cndrvcups-common cups"
pankso@10689 16 BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cndrvcups-common-dev cups-dev"
pankso@10689 17
pascal@24713 18 # What is the latest version available today?
pascal@24713 19 current_version()
pascal@24713 20 {
pascal@24713 21 wget -O - https://github.com/vicamo/cndrvcups-lb/tags 2>/dev/null | \
pascal@24713 22 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
pascal@24713 23 }
pascal@24713 24
jozee@4556 25 # Rules to configure and make the package.
pankso@10689 26 compile_rules()
pankso@10689 27 {
pankso@10689 28 #src="$WOK/$PACKAGE/$SOURCE/Sources"
jozee@4556 29 cd $src
jozee@4556 30
pankso@10689 31 [ -d cndrvcups-lb-$VERSION ] || tar xzf Sources/cndrvcups-lb-${VERSION}-1.tar.gz
jozee@4556 32
jozee@4556 33 cd $src/cndrvcups-lb-$VERSION/ppd &&
pankso@10689 34 ./autogen.sh \
pankso@10689 35 --prefix=/usr \
pankso@10689 36 --enable-shared \
pankso@10689 37 --disable-static \
pankso@10689 38 --program-suffix="" \
pankso@10689 39 --program-prefix="" &&
gokhlayeh@11574 40 make $MAKEFLAGS &&
pankso@10689 41 make DESTDIR=$DESTDIR install
jozee@4556 42
jozee@4556 43 cd $src/cndrvcups-lb-$VERSION/pstoufr2cpca
pankso@10689 44 ./autogen.sh \
pankso@10689 45 --prefix=/usr \
pankso@10689 46 --enable-progpath=/usr/bin \
pankso@10689 47 --libdir=/usr/lib \
pankso@10689 48 --program-suffix="" \
pankso@10689 49 --program-prefix="" &&
gokhlayeh@11574 50 make $MAKEFLAGS &&
pankso@10689 51 make DESTDIR=$DESTDIR install
jozee@4556 52 }
jozee@4556 53
jozee@4556 54 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4556 55 genpkg_rules()
jozee@4556 56 {
pankso@10689 57 mkdir -p \
pankso@10689 58 $fs/usr/lib \
pankso@10689 59 $fs/usr/share/caepcm \
pankso@10689 60 $fs/usr/share/licenses/$PACKAGE \
pankso@10689 61 $fs/usr/lib/cups/filter
jozee@4556 62
pankso@10689 63 cp -a $src/cndrvcups-lb-$VERSION/libs/*.so* $fs/usr/lib
pankso@10689 64 cp -a $src/cndrvcups-lb-$VERSION/data/C* $fs/usr/share/caepcm
pankso@10689 65 cp -a $install/usr/share/* $fs/usr/share/
pankso@10689 66 cp -a $install/usr/lib/cups/filter $fs/usr/lib/cups/filter
jozee@4556 67
jozee@4556 68 # gzip all ppd files
jozee@4556 69 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
pankso@10689 70
pankso@10689 71 # non-free license
pankso@10689 72 cp -a $src/Documents/LICENSE-ufr2drv*.txt $fs/usr/share/licenses/$PACKAGE
jozee@4556 73
pankso@10689 74 cd $fs/usr/lib
pankso@10689 75 ln -sf libcanonufr2.so.1.0.0 liblibcanonufr2.so.1
pankso@10689 76 ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so
pankso@10689 77 ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1
pankso@10689 78 ln -sf libufr2filter.so.1.0.0 libufr2filter.so
jozee@4556 79 }
jozee@4556 80
jozee@4556 81 pre_install()
jozee@4556 82 {
jozee@4556 83 echo ""
jozee@4556 84 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
jozee@4556 85 echo "================================================================================"
jozee@4556 86 echo "You are installing a package with proprietary license."
jozee@4556 87 echo "You must accept the license."
jozee@4556 88 echo "================================================================================"
jozee@4556 89 echo ""
jozee@4556 90 }
jozee@4556 91
jozee@4556 92 post_install()
jozee@4556 93 {
jozee@4556 94 echo ""
jozee@4556 95 echo -e "\033[1m CANON PRINTING LICENSE INFORMATION:\033[0m $2"
jozee@4556 96 echo "================================================================================"
jozee@4556 97 echo "For installing this package, you have to accept the $PACKAGE license."
jozee@4556 98 echo "The license is stored in /usr/share/licenses/$PACKAGE "
jozee@4556 99 echo -n "Would you like to read the license (y/N) : "; read anser
jozee@4556 100 if [ "$anser" = "y" ]; then
pascal@18730 101 cat "$1/usr/share/licenses/$PACKAGE/LICENSE" | more
jozee@4556 102 echo ""
jozee@4556 103 fi
jozee@4556 104 echo "================================================================================"
jozee@4556 105 echo -n "Do you accept the license (y/N) : "; read anser
jozee@4556 106 if [ "$anser" = "N" ]; then
jozee@4556 107 echo "You did not accept the license, Removing the pkg."
pascal@17552 108 chroot "$1/" tazpkg remove "$PACKAGE"
jozee@4556 109 fi
jozee@4556 110 }