wok-6.x annotate brscan2/receipt @ rev 23010

updated libav (0.6.1 -> 0.6.6)
author Hans-G?nter Theisgen
date Tue Mar 03 08:54:13 2020 +0100 (2020-03-03)
parents eb8067417980
children
rev   line source
pascal@3773 1 # SliTaz package receipt.
pascal@3773 2
pascal@3773 3 PACKAGE="brscan2"
pascal@3773 4 VERSION="0.2.4"
pascal@3773 5 CATEGORY="office"
pascal@3773 6 SHORT_DESC="Brother Scanner driver for SANE."
pascal@3773 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
pascal@3773 9 WANTED="brscan"
pascal@3773 10 WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html"
pascal@15579 11 TAGS="scanner driver"
pascal@15579 12
pascal@3871 13 DEPENDS="sane-backends"
pascal@3773 14
pascal@3773 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3773 16 genpkg_rules()
pascal@3773 17 {
pascal@3773 18 mkdir -p $fs/usr/bin $fs/usr/lib/sane $fs/usr/local/Brother/sane/models2
pascal@3773 19 for i in ALL AL ; do
pascal@3773 20 mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i
pascal@3773 21 cp -a $src/brscan/libbrcolm2/GrayCmData/$i/* \
pascal@3773 22 $fs/usr/local/Brother/sane/GrayCmData/$i
pascal@3773 23 chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i
pascal@3773 24 done
pascal@3773 25 cp $src/brscan/backend_brscan2/.libs/libsane-brother2.so.1.0.7 \
pascal@3773 26 $fs/usr/lib/sane/libsane-brother2.so.1.0.7
pascal@3773 27 ln -s libsane-brother2.so.1.0.7 $fs/usr/lib/sane/libsane-brother2.so.1
pascal@3773 28 ln -s libsane-brother2.so.1 $fs/usr/lib/sane/libsane-brother2.so
pascal@3773 29 cp $src/brscan/libbrscandec2/libbrscandec2.so.1.0.0 \
pascal@3773 30 $fs/usr/lib/libbrscandec2.so.1.0.0
pascal@3773 31 chmod 755 $fs/usr/lib/libbrscandec2.so.1.0.0
pascal@3773 32 ln -s libbrscandec2.so.1.0.0 $fs/usr/lib/libbrscandec2.so.1
pascal@3773 33 ln -s libbrscandec2.so.1 $fs/usr/lib/libbrscandec2.so
pascal@3773 34 cp $src/brscan/libbrcolm2/libbrcolm2.so.1.0.0 \
pascal@3773 35 $fs/usr/lib/libbrcolm2.so.1.0.0
pascal@3773 36 chmod 755 $fs/usr/lib/libbrcolm2.so.1.0.0
pascal@3773 37 ln -s libbrcolm2.so.1.0.0 $fs/usr/lib/libbrcolm2.so.1
pascal@3773 38 ln -s libbrcolm2.so.1 $fs/usr/lib/libbrcolm2.so
pascal@3773 39 while read line; do
pascal@3773 40 echo $line
pascal@3773 41 echo $line | grep -q 'Support Model' || continue
pascal@3773 42 cat <<EOT
pascal@3773 43 0x01eb,6,1,"MFC-7320",131,4
pascal@3773 44 0x01e7,6,1,"MFC-7340",131,4
pascal@3773 45 0x01e6,6,1,"MFC-7440N",131,4
pascal@3773 46 0x01ee,6,1,"MFC-7450",131,4
pascal@3773 47 0x01ed,6,1,"MFC-7840N",131,4
pascal@3773 48 0x01e5,6,1,"MFC-7840W",131,4
pascal@3773 49 0x01ea,6,1,"DCP-7030",131,4
pascal@3773 50 0x01e9,6,1,"DCP-7040",131,4
pascal@3773 51 0x01e8,6,1,"DCP-7045N",131,4
pascal@3773 52
pascal@3773 53 EOT
pascal@3773 54 done < $src/brscan/mk_package/Brsane2.ini > \
pascal@3773 55 $fs/usr/local/Brother/sane/Brsane2.ini
pascal@3773 56 chmod 644 $fs/usr/local/Brother/sane/Brsane2.ini
pascal@3773 57 cp $src/brscan/mk_package/brsanenetdevice2.cfg \
pascal@3773 58 $fs/usr/local/Brother/sane/brsanenetdevice2.cfg
pascal@3773 59 chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice2.cfg
pascal@3773 60 cp $src/brscan/netconfig/brsaneconfig2 \
pascal@3773 61 $fs/usr/local/Brother/sane/brsaneconfig2
pascal@3773 62 ln -s /usr/local/Brother/sane/brsaneconfig2 $fs/usr/bin/brsaneconfig2
pascal@3773 63 cp $src/brscan/mk_package/setupSaneScan2 \
pascal@3773 64 $fs/usr/local/Brother/sane/setupSaneScan2
pascal@3773 65 chmod 755 $fs/usr/local/Brother/sane/setupSaneScan2
pascal@3773 66 cp $src/brscan/mk_package/ext1.ini \
pascal@3773 67 $fs/usr/local/Brother/sane/models2/ext1.ini
pascal@3773 68 }
pascal@3773 69
pascal@3773 70 # Pre and post install and remove commands for Tazpkg.
pascal@3773 71 post_install()
pascal@3773 72 {
al@18673 73 chroot "$1/" /usr/local/Brother/sane/setupSaneScan2 -i
pascal@3773 74 }
pascal@3773 75
pascal@3773 76 pre_remove()
pascal@3773 77 {
al@18673 78 chroot "$1/" /usr/local/Brother/sane/setupSaneScan2 -e
pascal@3773 79 }