wok-6.x annotate cndrvcups-common/receipt @ rev 5801

Speedup some builds
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 11 15:49:06 2010 +0200 (2010-07-11)
parents f7e96b8e3444
children 1f84f54aac7a
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
jozee@4555 20 src="$WOK/$PACKAGE/$SOURCE/Sources"
jozee@4555 21 cd $src
jozee@4555 22
jozee@4555 23 [ -d cndrvcups-common-$VERSION ] || tar xzf cndrvcups-common-${VERSION}-1.tar.gz
jozee@4555 24
jozee@4555 25 cd $src/cndrvcups-common-$VERSION/buftool
jozee@4555 26 ./autogen.sh --prefix=/usr &&
jozee@4555 27 make &&
jozee@4555 28 make DESTDIR=$PWD/_pkg LIBDIR=/usr/lib install
jozee@4555 29
jozee@4555 30 cd $src/cndrvcups-common-$VERSION/cpca
jozee@4555 31 ./autogen.sh --prefix=/usr &&
jozee@4555 32 make &&
jozee@4555 33 make DESTDIR=$PWD/_pkg LIBDIR=$PWD/_pkg/usr/lib install
jozee@4555 34
jozee@4555 35 cd $src/cndrvcups-common-$VERSION/cngplp
jozee@4555 36 ./autogen.sh --prefix=/usr &&
jozee@4555 37 make && \
jozee@4555 38 make DESTDIR=$PWD/_pkg install
jozee@4555 39
jozee@4555 40 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
jozee@4555 41 make
jozee@4555 42
jozee@4555 43 }
jozee@4555 44
jozee@4555 45 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4555 46 genpkg_rules()
jozee@4555 47 {
jozee@4555 48 mkdir -p $fs/usr/lib \
jozee@4555 49 $fs/usr/bin/ \
jozee@4555 50 $fs/usr/share/caepcm \
jozee@4555 51 $fs/usr/share/licenses/$PACKAGE \
jozee@4555 52 $fs/etc
jozee@4555 53
jozee@4555 54 _pkg="$WOK/$PACKAGE/$SOURCE/Sources"
jozee@4555 55
jozee@4555 56 cp -a $_pkg/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
jozee@4555 57 cp -a $_pkg/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
jozee@4555 58 cp -a $_pkg/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
jozee@4555 59 cp -a $_pkg/cndrvcups-common-$VERSION/cpca/_pkg/usr/lib/*.so* $fs/usr/lib
jozee@4555 60 cp -a $_pkg/cndrvcups-common-$VERSION/cngplp/_pkg/etc $fs
jozee@4555 61 cp -a $_pkg/cndrvcups-common-$VERSION/cngplp/_pkg/usr $fs
jozee@4555 62 cp -a $_pkg/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
jozee@4555 63 cp -a $_pkg/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
jozee@4555 64
jozee@4555 65 # gzip all ppd files
jozee@4555 66 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
jozee@4555 67
jozee@4555 68 cd $fs/usr/lib
jozee@4555 69 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
jozee@4555 70 ln -sf libc3pl.so.0.0.1 libc3pl.so
jozee@4555 71
jozee@4555 72 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
jozee@4555 73 ln -sf libcnaccm.so.1.0 libcnaccm.so
jozee@4555 74
jozee@4555 75 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
jozee@4555 76 ln -sf libcaepcm.so.1.0 libcaepcm.so
jozee@4555 77
jozee@4555 78 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
jozee@4555 79 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
jozee@4555 80
jozee@4555 81 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
jozee@4555 82 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
jozee@4555 83
jozee@4555 84 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
jozee@4555 85 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
jozee@4555 86
jozee@4555 87 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
jozee@4555 88 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
jozee@4555 89
jozee@4555 90 }
jozee@4555 91
jozee@4555 92