wok-next view cndrvcups-common/receipt @ rev 21103
emacs: depends on emacs-common
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 03 11:21:15 2019 +0200 (2019-01-03) |
parents | f48456621a9d |
children | 82b613cfd1e0 |
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="devel@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx" # FIXME 404
11 TARBALL="ufr2linuxv180.zip"
12 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL"
14 BUILD_DEPENDS="autoconf automake cairo-dev gtk2-dev cups-dev libtool"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-$VERSION-1.tar.gz
20 cd $src/cndrvcups-common-$VERSION/buftool
21 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$install LIBDIR=/usr/lib install || return 1
25 cd $src/cndrvcups-common-$VERSION/cpca
26 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$install LIBDIR=$install/usr/lib install || return 1
30 cd $src/cndrvcups-common-$VERSION/cngplp
31 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$install install || return 1
35 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
36 make &&
37 cp -a $src/cndrvcups-common-$VERSION $install
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 cndrvcups-common)
43 mkdir -p $fs/usr/lib \
44 $fs/usr/bin/ \
45 $fs/usr/share/caepcm \
46 $fs/usr/share/licenses/$PACKAGE \
47 $fs/etc
49 cp -a $install/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
50 cp -a $install/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
51 cp -a $install/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 cp -a $install/etc $fs
54 cp -a $install/usr $fs
55 cp -a $install/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
56 cp -a $install/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
58 # gzip all ppd files
59 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
61 cd $fs/usr/lib
62 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
63 ln -sf libc3pl.so.0.0.1 libc3pl.so
65 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
66 ln -sf libcnaccm.so.1.0 libcnaccm.so
68 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
69 ln -sf libcaepcm.so.1.0 libcaepcm.so
71 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
72 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
74 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
75 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
77 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
78 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
80 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
81 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
82 DEPENDS="cups cairo gtk2"
83 TAGS="printer driver"
84 ;;
85 *-dev)
86 mkdir -p $fs/usr/lib
87 cp -a $install/usr/include $fs/usr
88 cp -a $install/usr/lib/*.a $fs/usr/lib
89 ;;
90 esac
91 }