wok-current diff cndrvcups-common/receipt @ rev 4737
knock/knockd-helper: add help
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 07 12:40:20 2010 +0100 (2010-01-07) |
parents | |
children | f7e96b8e3444 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cndrvcups-common/receipt Thu Jan 07 12:40:20 2010 +0100 1.3 @@ -0,0 +1,92 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cndrvcups-common" 1.7 +VERSION="1.80" 1.8 +CATEGORY="system-tools" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers" 1.11 +WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx" 1.12 +DEPENDS="cups cairo" 1.13 +BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev" 1.14 +SOURCE="ufr2linuxv180" 1.15 +TARBALL="${SOURCE}.zip" 1.16 +WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL" 1.17 +TAGS="" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 + 1.21 +compile_rules() { 1.22 + 1.23 + src="$WOK/$PACKAGE/$SOURCE/Sources" 1.24 + cd $src 1.25 + 1.26 + [ -d cndrvcups-common-$VERSION ] || tar xzf cndrvcups-common-${VERSION}-1.tar.gz 1.27 + 1.28 + cd $src/cndrvcups-common-$VERSION/buftool 1.29 + ./autogen.sh --prefix=/usr && 1.30 + make && 1.31 + make DESTDIR=$PWD/_pkg LIBDIR=/usr/lib install 1.32 + 1.33 + cd $src/cndrvcups-common-$VERSION/cpca 1.34 + ./autogen.sh --prefix=/usr && 1.35 + make && 1.36 + make DESTDIR=$PWD/_pkg LIBDIR=$PWD/_pkg/usr/lib install 1.37 + 1.38 + cd $src/cndrvcups-common-$VERSION/cngplp 1.39 + ./autogen.sh --prefix=/usr && 1.40 + make && \ 1.41 + make DESTDIR=$PWD/_pkg install 1.42 + 1.43 + cd $src/cndrvcups-common-$VERSION/c3plmod_ipc 1.44 + make 1.45 + 1.46 +} 1.47 + 1.48 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 +genpkg_rules() 1.50 +{ 1.51 + mkdir -p $fs/usr/lib \ 1.52 + $fs/usr/bin/ \ 1.53 + $fs/usr/share/caepcm \ 1.54 + $fs/usr/share/licenses/$PACKAGE \ 1.55 + $fs/etc 1.56 + 1.57 + _pkg="$WOK/$PACKAGE/$SOURCE/Sources" 1.58 + 1.59 + cp -a $_pkg/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib 1.60 + cp -a $_pkg/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/ 1.61 + cp -a $_pkg/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/ 1.62 + cp -a $_pkg/cndrvcups-common-$VERSION/cpca/_pkg/usr/lib/*.so* $fs/usr/lib 1.63 + cp -a $_pkg/cndrvcups-common-$VERSION/cngplp/_pkg/etc $fs 1.64 + cp -a $_pkg/cndrvcups-common-$VERSION/cngplp/_pkg/usr $fs 1.65 + cp -a $_pkg/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib 1.66 + cp -a $_pkg/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm 1.67 + 1.68 + # gzip all ppd files 1.69 + #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9 1.70 + 1.71 + cd $fs/usr/lib 1.72 + ln -sf libc3pl.so.0.0.1 libc3pl.so.0 1.73 + ln -sf libc3pl.so.0.0.1 libc3pl.so 1.74 + 1.75 + ln -sf libcnaccm.so.1.0 libcnaccm.so.1 1.76 + ln -sf libcnaccm.so.1.0 libcnaccm.so 1.77 + 1.78 + ln -sf libcaepcm.so.1.0 libcaepcm.so.1 1.79 + ln -sf libcaepcm.so.1.0 libcaepcm.so 1.80 + 1.81 + ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1 1.82 + ln -sf libcnlbcm.so.1.0 libcnlbcm.so 1.83 + 1.84 + ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1 1.85 + ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so 1.86 + 1.87 + ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1 1.88 + ln -sf libcaiousb.so.1.0.0 libcaiousb.so 1.89 + 1.90 + ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1 1.91 + ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so 1.92 + 1.93 +} 1.94 + 1.95 +