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

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 8940878905f3
children d5aab818505e
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"
jozee@4555 7 MAINTAINER="jozee@slitaz.org"
pascal@15606 8 LICENSE="other"
jozee@4555 9 WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx"
al@20462 10
al@20462 11 TARBALL="ufr2linuxv180.zip"
jozee@4555 12 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL"
jozee@4555 13
al@21017 14 BUILD_DEPENDS="autoconf automake cairo-dev gtk2-dev cups-dev libtool"
al@20462 15 SPLIT="cndrvcups-common-dev"
jozee@4555 16
jozee@4555 17 compile_rules() {
al@20462 18 [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-${VERSION}-1.tar.gz
gokhlayeh@11573 19
al@20462 20 cd $src/cndrvcups-common-$VERSION/buftool
al@20462 21 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
al@20462 22 make &&
al@20462 23 make DESTDIR=$DESTDIR LIBDIR=/usr/lib install || return 1
gokhlayeh@11573 24
al@20462 25 cd $src/cndrvcups-common-$VERSION/cpca
al@20462 26 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
al@20462 27 make &&
al@20462 28 make DESTDIR=$DESTDIR LIBDIR=$DESTDIR/usr/lib install || return 1
gokhlayeh@11573 29
al@20462 30 cd $src/cndrvcups-common-$VERSION/cngplp
al@20462 31 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
al@20462 32 make &&
al@20462 33 make DESTDIR=$DESTDIR install || return 1
gokhlayeh@11573 34
al@20462 35 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
al@20462 36 make &&
al@20462 37 cp -a $src/cndrvcups-common-$VERSION $DESTDIR
jozee@4555 38 }
jozee@4555 39
al@20462 40 genpkg_rules() {
al@20462 41 case $PACKAGE in
al@20462 42 cndrvcups-common)
al@20462 43 mkdir -p $fs/usr/lib \
al@20462 44 $fs/usr/bin/ \
al@20462 45 $fs/usr/share/caepcm \
al@20462 46 $fs/usr/share/licenses/$PACKAGE \
al@20462 47 $fs/etc
jozee@4555 48
al@20462 49 cp -a $install/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
al@20462 50 cp -a $install/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
al@20462 51 cp -a $install/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
al@20462 52 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@20462 53 cp -a $install/etc $fs
al@20462 54 cp -a $install/usr $fs
al@20462 55 cp -a $install/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
al@20462 56 cp -a $install/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
al@20462 57
al@20462 58 # gzip all ppd files
al@20462 59 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
al@20462 60
al@20462 61 cd $fs/usr/lib
al@20462 62 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
al@20462 63 ln -sf libc3pl.so.0.0.1 libc3pl.so
al@20462 64
al@20462 65 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
al@20462 66 ln -sf libcnaccm.so.1.0 libcnaccm.so
al@20462 67
al@20462 68 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
al@20462 69 ln -sf libcaepcm.so.1.0 libcaepcm.so
al@20462 70
al@20462 71 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
al@20462 72 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
al@20462 73
al@20462 74 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
al@20462 75 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
al@20462 76
al@20462 77 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
al@20462 78 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
al@20462 79
al@20462 80 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
al@20462 81 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
al@21017 82 DEPENDS="cups cairo gtk2"
al@20462 83 TAGS="printer driver"
al@20462 84 ;;
al@20462 85 *-dev)
al@20462 86 mkdir -p $fs/usr/lib
al@20462 87 cp -a $install/usr/include $fs/usr
al@20462 88 cp -a $install/usr/lib/*.a $fs/usr/lib
al@20462 89 ;;
al@20462 90 esac
al@20462 91 }