wok-next annotate cndrvcups-common/receipt @ rev 21627

updated enet (1.2.1 -> 1.3.15)
author Hans-G?nter Theisgen
date Thu Jun 25 16:07:08 2020 +0100 (2020-06-25)
parents 82b613cfd1e0
children
rev   line source
al@20462 1 # SliTaz package receipt v2.
jozee@4555 2
jozee@4555 3 PACKAGE="cndrvcups-common"
jozee@4555 4 VERSION="1.80"
jozee@4555 5 CATEGORY="system-tools"
al@20462 6 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers"
Hans-G?nter@21237 7 MAINTAINER="maintainer@slitaz.org"
pascal@15606 8 LICENSE="other"
Hans-G?nter@21237 9 #WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx" # FIXME 404
Hans-G?nter@21237 10 WEB_SITE="http://www.service.canon.com.au/drivers/files/"
al@20462 11
al@20462 12 TARBALL="ufr2linuxv180.zip"
jozee@4555 13 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL"
jozee@4555 14
al@21017 15 BUILD_DEPENDS="autoconf automake cairo-dev gtk2-dev cups-dev libtool"
al@21020 16 SPLIT="$PACKAGE-dev"
jozee@4555 17
jozee@4555 18 compile_rules() {
al@21020 19 [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-$VERSION-1.tar.gz
gokhlayeh@11573 20
al@20462 21 cd $src/cndrvcups-common-$VERSION/buftool
al@20462 22 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
al@20462 23 make &&
al@21020 24 make DESTDIR=$install LIBDIR=/usr/lib install || return 1
gokhlayeh@11573 25
al@20462 26 cd $src/cndrvcups-common-$VERSION/cpca
al@20462 27 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
al@20462 28 make &&
al@21020 29 make DESTDIR=$install LIBDIR=$install/usr/lib install || return 1
gokhlayeh@11573 30
al@20462 31 cd $src/cndrvcups-common-$VERSION/cngplp
al@20462 32 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
al@20462 33 make &&
al@21020 34 make DESTDIR=$install install || return 1
gokhlayeh@11573 35
al@20462 36 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
al@20462 37 make &&
al@21020 38 cp -a $src/cndrvcups-common-$VERSION $install
jozee@4555 39 }
jozee@4555 40
al@20462 41 genpkg_rules() {
al@20462 42 case $PACKAGE in
al@20462 43 cndrvcups-common)
al@20462 44 mkdir -p $fs/usr/lib \
al@20462 45 $fs/usr/bin/ \
al@20462 46 $fs/usr/share/caepcm \
al@20462 47 $fs/usr/share/licenses/$PACKAGE \
al@20462 48 $fs/etc
jozee@4555 49
al@20462 50 cp -a $install/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
al@20462 51 cp -a $install/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
al@20462 52 cp -a $install/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
al@20462 53 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@20462 54 cp -a $install/etc $fs
al@20462 55 cp -a $install/usr $fs
al@20462 56 cp -a $install/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
al@20462 57 cp -a $install/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
al@20462 58
al@20462 59 # gzip all ppd files
al@20462 60 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
al@20462 61
al@20462 62 cd $fs/usr/lib
al@20462 63 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
al@20462 64 ln -sf libc3pl.so.0.0.1 libc3pl.so
al@20462 65
al@20462 66 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
al@20462 67 ln -sf libcnaccm.so.1.0 libcnaccm.so
al@20462 68
al@20462 69 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
al@20462 70 ln -sf libcaepcm.so.1.0 libcaepcm.so
al@20462 71
al@20462 72 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
al@20462 73 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
al@20462 74
al@20462 75 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
al@20462 76 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
al@20462 77
al@20462 78 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
al@20462 79 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
al@20462 80
al@20462 81 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
al@20462 82 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
al@21105 83 DEPENDS="cups libcairo gtk2"
al@20462 84 TAGS="printer driver"
al@20462 85 ;;
al@20462 86 *-dev)
al@20462 87 mkdir -p $fs/usr/lib
al@20462 88 cp -a $install/usr/include $fs/usr
al@20462 89 cp -a $install/usr/lib/*.a $fs/usr/lib
al@20462 90 ;;
al@20462 91 esac
al@20462 92 }