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