wok-next annotate cndrvcups-common/receipt @ rev 15432
Up: eina (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:57:26 2013 +0100 (2013-11-05) |
parents | b7319995b37e |
children | c1e059ce9a05 |
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" |
jozee@4555 | 9 SOURCE="ufr2linuxv180" |
jozee@4555 | 10 TARBALL="${SOURCE}.zip" |
jozee@4555 | 11 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL" |
jozee@4933 | 12 TAGS="printer driver" |
jozee@4555 | 13 |
pascal@15071 | 14 DEPENDS="cups cairo gtk+" |
pascal@15071 | 15 BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cups-dev" |
pascal@15071 | 16 |
jozee@4555 | 17 # Rules to configure and make the package. |
jozee@4555 | 18 |
jozee@4555 | 19 compile_rules() { |
jozee@4555 | 20 |
pascal@9121 | 21 cd $src |
gokhlayeh@11573 | 22 |
pascal@9121 | 23 [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-${VERSION}-1.tar.gz |
gokhlayeh@11573 | 24 |
gokhlayeh@11573 | 25 cd $src/cndrvcups-common-$VERSION/buftool |
gokhlayeh@11573 | 26 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS && |
gokhlayeh@11573 | 27 make && |
pascal@9058 | 28 make DESTDIR=$DESTDIR LIBDIR=/usr/lib install |
gokhlayeh@11573 | 29 |
gokhlayeh@11573 | 30 cd $src/cndrvcups-common-$VERSION/cpca |
gokhlayeh@11573 | 31 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS && |
gokhlayeh@11573 | 32 make && |
pascal@9121 | 33 make DESTDIR=$DESTDIR LIBDIR=$DESTDIR/usr/lib install |
gokhlayeh@11573 | 34 |
gokhlayeh@11573 | 35 cd $src/cndrvcups-common-$VERSION/cngplp |
gokhlayeh@11573 | 36 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS && |
jozee@4555 | 37 make && \ |
pascal@9058 | 38 make DESTDIR=$DESTDIR install |
gokhlayeh@11573 | 39 |
gokhlayeh@11573 | 40 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc |
pascal@9121 | 41 make && cp -a $src/cndrvcups-common-$VERSION $DESTDIR |
jozee@4555 | 42 } |
jozee@4555 | 43 |
jozee@4555 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4555 | 45 genpkg_rules() |
jozee@4555 | 46 { |
jozee@4555 | 47 mkdir -p $fs/usr/lib \ |
jozee@4555 | 48 $fs/usr/bin/ \ |
jozee@4555 | 49 $fs/usr/share/caepcm \ |
jozee@4555 | 50 $fs/usr/share/licenses/$PACKAGE \ |
jozee@4555 | 51 $fs/etc |
gokhlayeh@11573 | 52 |
pascal@15071 | 53 cp -a $install/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib |
pascal@15071 | 54 cp -a $install/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/ |
pascal@15071 | 55 cp -a $install/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/ |
pascal@15071 | 56 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15071 | 57 cp -a $install/etc $fs |
pascal@15071 | 58 cp -a $install/usr $fs |
pascal@15071 | 59 cp -a $install/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib |
pascal@15071 | 60 cp -a $install/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm |
gokhlayeh@11573 | 61 |
jozee@4555 | 62 # gzip all ppd files |
jozee@4555 | 63 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9 |
gokhlayeh@11573 | 64 |
jozee@4555 | 65 cd $fs/usr/lib |
jozee@4555 | 66 ln -sf libc3pl.so.0.0.1 libc3pl.so.0 |
jozee@4555 | 67 ln -sf libc3pl.so.0.0.1 libc3pl.so |
gokhlayeh@11573 | 68 |
jozee@4555 | 69 ln -sf libcnaccm.so.1.0 libcnaccm.so.1 |
jozee@4555 | 70 ln -sf libcnaccm.so.1.0 libcnaccm.so |
gokhlayeh@11573 | 71 |
jozee@4555 | 72 ln -sf libcaepcm.so.1.0 libcaepcm.so.1 |
jozee@4555 | 73 ln -sf libcaepcm.so.1.0 libcaepcm.so |
gokhlayeh@11573 | 74 |
jozee@4555 | 75 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1 |
jozee@4555 | 76 ln -sf libcnlbcm.so.1.0 libcnlbcm.so |
gokhlayeh@11573 | 77 |
jozee@4555 | 78 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1 |
jozee@4555 | 79 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so |
gokhlayeh@11573 | 80 |
jozee@4555 | 81 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1 |
jozee@4555 | 82 ln -sf libcaiousb.so.1.0.0 libcaiousb.so |
gokhlayeh@11573 | 83 |
jozee@4555 | 84 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1 |
gokhlayeh@11573 | 85 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so |
jozee@4555 | 86 } |
jozee@4555 | 87 |
jozee@4555 | 88 |