wok diff brscan2/receipt @ rev 3815
Fix: slim cook with gcc 4.4 serie
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Aug 06 14:18:28 2009 +0200 (2009-08-06) |
parents | |
children | 8cdc8f3e6e3e |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/brscan2/receipt Thu Aug 06 14:18:28 2009 +0200 1.3 @@ -0,0 +1,76 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="brscan2" 1.7 +VERSION="0.2.4" 1.8 +CATEGORY="office" 1.9 +SHORT_DESC="Brother Scanner driver for SANE." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WANTED="brscan" 1.12 +WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + src=$WOK/$WANTED/$WANTED-src-$VERSION 1.18 + mkdir -p $fs/usr/bin $fs/usr/lib/sane $fs/usr/local/Brother/sane/models2 1.19 + for i in ALL AL ; do 1.20 + mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i 1.21 + cp -a $src/brscan/libbrcolm2/GrayCmData/$i/* \ 1.22 + $fs/usr/local/Brother/sane/GrayCmData/$i 1.23 + chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i 1.24 + done 1.25 + cp $src/brscan/backend_brscan2/.libs/libsane-brother2.so.1.0.7 \ 1.26 + $fs/usr/lib/sane/libsane-brother2.so.1.0.7 1.27 + ln -s libsane-brother2.so.1.0.7 $fs/usr/lib/sane/libsane-brother2.so.1 1.28 + ln -s libsane-brother2.so.1 $fs/usr/lib/sane/libsane-brother2.so 1.29 + cp $src/brscan/libbrscandec2/libbrscandec2.so.1.0.0 \ 1.30 + $fs/usr/lib/libbrscandec2.so.1.0.0 1.31 + chmod 755 $fs/usr/lib/libbrscandec2.so.1.0.0 1.32 + ln -s libbrscandec2.so.1.0.0 $fs/usr/lib/libbrscandec2.so.1 1.33 + ln -s libbrscandec2.so.1 $fs/usr/lib/libbrscandec2.so 1.34 + cp $src/brscan/libbrcolm2/libbrcolm2.so.1.0.0 \ 1.35 + $fs/usr/lib/libbrcolm2.so.1.0.0 1.36 + chmod 755 $fs/usr/lib/libbrcolm2.so.1.0.0 1.37 + ln -s libbrcolm2.so.1.0.0 $fs/usr/lib/libbrcolm2.so.1 1.38 + ln -s libbrcolm2.so.1 $fs/usr/lib/libbrcolm2.so 1.39 + while read line; do 1.40 + echo $line 1.41 + echo $line | grep -q 'Support Model' || continue 1.42 + cat <<EOT 1.43 +0x01eb,6,1,"MFC-7320",131,4 1.44 +0x01e7,6,1,"MFC-7340",131,4 1.45 +0x01e6,6,1,"MFC-7440N",131,4 1.46 +0x01ee,6,1,"MFC-7450",131,4 1.47 +0x01ed,6,1,"MFC-7840N",131,4 1.48 +0x01e5,6,1,"MFC-7840W",131,4 1.49 +0x01ea,6,1,"DCP-7030",131,4 1.50 +0x01e9,6,1,"DCP-7040",131,4 1.51 +0x01e8,6,1,"DCP-7045N",131,4 1.52 + 1.53 +EOT 1.54 + done < $src/brscan/mk_package/Brsane2.ini > \ 1.55 + $fs/usr/local/Brother/sane/Brsane2.ini 1.56 + chmod 644 $fs/usr/local/Brother/sane/Brsane2.ini 1.57 + cp $src/brscan/mk_package/brsanenetdevice2.cfg \ 1.58 + $fs/usr/local/Brother/sane/brsanenetdevice2.cfg 1.59 + chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice2.cfg 1.60 + cp $src/brscan/netconfig/brsaneconfig2 \ 1.61 + $fs/usr/local/Brother/sane/brsaneconfig2 1.62 + ln -s /usr/local/Brother/sane/brsaneconfig2 $fs/usr/bin/brsaneconfig2 1.63 + cp $src/brscan/mk_package/setupSaneScan2 \ 1.64 + $fs/usr/local/Brother/sane/setupSaneScan2 1.65 + chmod 755 $fs/usr/local/Brother/sane/setupSaneScan2 1.66 + cp $src/brscan/mk_package/ext1.ini \ 1.67 + $fs/usr/local/Brother/sane/models2/ext1.ini 1.68 +} 1.69 + 1.70 +# Pre and post install and remove commands for Tazpkg. 1.71 +post_install() 1.72 +{ 1.73 + chroot $1/ /usr/local/Brother/sane/setupSaneScan2 -i 1.74 +} 1.75 + 1.76 +pre_remove() 1.77 +{ 1.78 + chroot $1/ /usr/local/Brother/sane/setupSaneScan2 -e 1.79 +}