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