wok annotate ufr2/receipt @ rev 25091

updated paramiko (2.7.1 -> 2.11.0)
author Hans-G?nter Theisgen
date Sat Jun 18 09:52:25 2022 +0100 (2022-06-18)
parents b7f1bd1b9ac7
children
rev   line source
jozee@4556 1 # SliTaz package receipt.
jozee@4556 2
jozee@4556 3 PACKAGE="ufr2"
pascal@24984 4 VERSION="2.40-2"
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"
pascal@24984 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24984 11 WEB_SITE="https://github.com/vicamo/cndrvcups-lb"
pascal@24984 12 WGET_URL="https://github.com/vicamo/cndrvcups-lb/archive/refs/tags/canon-$VERSION.tar.gz"
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 {
pascal@24984 28 cd $src/ppd &&
pascal@24984 29 ./autogen.sh \
pankso@10689 30 --prefix=/usr \
pankso@10689 31 --enable-shared \
pankso@10689 32 --disable-static \
pankso@10689 33 --program-suffix="" \
pankso@10689 34 --program-prefix="" &&
pascal@24984 35 make $MAKEFLAGS &&
pascal@24984 36 make DESTDIR=$DESTDIR install
jozee@4556 37
pascal@24984 38 cd $src/pstoufr2cpca
pankso@10689 39 ./autogen.sh \
pankso@10689 40 --prefix=/usr \
pankso@10689 41 --enable-progpath=/usr/bin \
pankso@10689 42 --libdir=/usr/lib \
pankso@10689 43 --program-suffix="" \
pankso@10689 44 --program-prefix="" &&
gokhlayeh@11574 45 make $MAKEFLAGS &&
pankso@10689 46 make DESTDIR=$DESTDIR install
jozee@4556 47 }
jozee@4556 48
jozee@4556 49 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4556 50 genpkg_rules()
jozee@4556 51 {
pankso@10689 52 mkdir -p \
pankso@10689 53 $fs/usr/lib \
pankso@10689 54 $fs/usr/share/caepcm \
pankso@10689 55 $fs/usr/share/licenses/$PACKAGE \
pankso@10689 56 $fs/usr/lib/cups/filter
jozee@4556 57
pascal@24984 58 cp -a $src/libs/*.so* $fs/usr/lib
pascal@24984 59 cp -a $src/data/C* $fs/usr/share/caepcm
pankso@10689 60 cp -a $install/usr/share/* $fs/usr/share/
pankso@10689 61 cp -a $install/usr/lib/cups/filter $fs/usr/lib/cups/filter
jozee@4556 62
jozee@4556 63 # gzip all ppd files
jozee@4556 64 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
pankso@10689 65
pankso@10689 66 # non-free license
pascal@24984 67 cp -a $src/LICENSE-ufr2-${VERSION%-*}E.txt $fs/usr/share/licenses/$PACKAGE
jozee@4556 68
pankso@10689 69 cd $fs/usr/lib
pankso@10689 70 ln -sf libcanonufr2.so.1.0.0 liblibcanonufr2.so.1
pankso@10689 71 ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so
pankso@10689 72 ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1
pankso@10689 73 ln -sf libufr2filter.so.1.0.0 libufr2filter.so
jozee@4556 74 }
jozee@4556 75
jozee@4556 76 pre_install()
jozee@4556 77 {
jozee@4556 78 echo ""
jozee@4556 79 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
jozee@4556 80 echo "================================================================================"
jozee@4556 81 echo "You are installing a package with proprietary license."
jozee@4556 82 echo "You must accept the license."
jozee@4556 83 echo "================================================================================"
jozee@4556 84 echo ""
jozee@4556 85 }
jozee@4556 86
jozee@4556 87 post_install()
jozee@4556 88 {
jozee@4556 89 echo ""
jozee@4556 90 echo -e "\033[1m CANON PRINTING LICENSE INFORMATION:\033[0m $2"
jozee@4556 91 echo "================================================================================"
jozee@4556 92 echo "For installing this package, you have to accept the $PACKAGE license."
jozee@4556 93 echo "The license is stored in /usr/share/licenses/$PACKAGE "
jozee@4556 94 echo -n "Would you like to read the license (y/N) : "; read anser
jozee@4556 95 if [ "$anser" = "y" ]; then
pascal@18730 96 cat "$1/usr/share/licenses/$PACKAGE/LICENSE" | more
jozee@4556 97 echo ""
jozee@4556 98 fi
jozee@4556 99 echo "================================================================================"
jozee@4556 100 echo -n "Do you accept the license (y/N) : "; read anser
jozee@4556 101 if [ "$anser" = "N" ]; then
jozee@4556 102 echo "You did not accept the license, Removing the pkg."
pascal@17552 103 chroot "$1/" tazpkg remove "$PACKAGE"
jozee@4556 104 fi
jozee@4556 105 }