wok-current annotate cndrvcups-common/receipt @ rev 14032

gocr: use pnm2png, not pnmtopng
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 18 11:06:24 2013 +0100 (2013-02-18)
parents 6e4aa591c00b
children be3090d1feef
rev   line source
jozee@4555 1 # SliTaz package receipt.
jozee@4555 2
jozee@4555 3 PACKAGE="cndrvcups-common"
jozee@4555 4 VERSION="1.80"
jozee@4555 5 CATEGORY="system-tools"
jozee@4555 6 MAINTAINER="jozee@slitaz.org"
jozee@4555 7 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers"
jozee@4555 8 WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx"
pascal@4999 9 DEPENDS="cups cairo gtk+"
jozee@4555 10 BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev"
jozee@4555 11 SOURCE="ufr2linuxv180"
jozee@4555 12 TARBALL="${SOURCE}.zip"
jozee@4555 13 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL"
jozee@4933 14 TAGS="printer driver"
jozee@4555 15
jozee@4555 16 # Rules to configure and make the package.
jozee@4555 17
jozee@4555 18 compile_rules() {
jozee@4555 19
pascal@9121 20 cd $src
gokhlayeh@11573 21
pascal@9121 22 [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-${VERSION}-1.tar.gz
gokhlayeh@11573 23
gokhlayeh@11573 24 cd $src/cndrvcups-common-$VERSION/buftool
gokhlayeh@11573 25 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
gokhlayeh@11573 26 make &&
pascal@9058 27 make DESTDIR=$DESTDIR LIBDIR=/usr/lib install
gokhlayeh@11573 28
gokhlayeh@11573 29 cd $src/cndrvcups-common-$VERSION/cpca
gokhlayeh@11573 30 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
gokhlayeh@11573 31 make &&
pascal@9121 32 make DESTDIR=$DESTDIR LIBDIR=$DESTDIR/usr/lib install
gokhlayeh@11573 33
gokhlayeh@11573 34 cd $src/cndrvcups-common-$VERSION/cngplp
gokhlayeh@11573 35 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
jozee@4555 36 make && \
pascal@9058 37 make DESTDIR=$DESTDIR install
gokhlayeh@11573 38
gokhlayeh@11573 39 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
pascal@9121 40 make && cp -a $src/cndrvcups-common-$VERSION $DESTDIR
jozee@4555 41 }
jozee@4555 42
jozee@4555 43 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4555 44 genpkg_rules()
jozee@4555 45 {
jozee@4555 46 mkdir -p $fs/usr/lib \
jozee@4555 47 $fs/usr/bin/ \
jozee@4555 48 $fs/usr/share/caepcm \
jozee@4555 49 $fs/usr/share/licenses/$PACKAGE \
jozee@4555 50 $fs/etc
gokhlayeh@11573 51
jozee@4555 52 cp -a $_pkg/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
jozee@4555 53 cp -a $_pkg/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
jozee@4555 54 cp -a $_pkg/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
pascal@9121 55 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@9121 56 cp -a $_pkg/etc $fs
gokhlayeh@11573 57 cp -a $_pkg/usr $fs
gokhlayeh@11573 58 cp -a $_pkg/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
gokhlayeh@11573 59 cp -a $_pkg/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
gokhlayeh@11573 60
jozee@4555 61 # gzip all ppd files
jozee@4555 62 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
gokhlayeh@11573 63
jozee@4555 64 cd $fs/usr/lib
jozee@4555 65 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
jozee@4555 66 ln -sf libc3pl.so.0.0.1 libc3pl.so
gokhlayeh@11573 67
jozee@4555 68 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
jozee@4555 69 ln -sf libcnaccm.so.1.0 libcnaccm.so
gokhlayeh@11573 70
jozee@4555 71 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
jozee@4555 72 ln -sf libcaepcm.so.1.0 libcaepcm.so
gokhlayeh@11573 73
jozee@4555 74 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
jozee@4555 75 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
gokhlayeh@11573 76
jozee@4555 77 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
jozee@4555 78 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
gokhlayeh@11573 79
jozee@4555 80 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
jozee@4555 81 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
gokhlayeh@11573 82
jozee@4555 83 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
gokhlayeh@11573 84 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
jozee@4555 85 }
jozee@4555 86
jozee@4555 87