wok view brscan/receipt @ rev 3777

Add: python-beaker python-mako python-nose python-pylons python-routes python-tempita python-weberror python-webob python-webhelpers python-webtest
author Julien Rabier <taziden@slitaz.org>
date Thu Jul 30 16:35:54 2009 +0200 (2009-07-30)
parents
children 8cdc8f3e6e3e
line source
1 # SliTaz package receipt.
3 PACKAGE="brscan"
4 VERSION="0.2.4"
5 CATEGORY="office"
6 SHORT_DESC="Brother Scanner driver for SANE."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="$PACKAGE-src"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html"
11 WGET_URL="http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src/brscan
17 ./configure --prefix=/usr --infodir=/usr/share/info \
18 --sysconfdir=/etc --localstatedir=/var \
19 --mandir=/usr/share/man \
20 $CONFIGURE_ARGS || return 1
21 sed -i '/mk_package/d' Makefile
22 make
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin $fs/usr/lib/sane
29 for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \
30 ZL2 ZL2FB ZLe ZLeFB ; do
31 mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i
32 cp -a $src/brscan/libbrcolm/GrayCmData/$i/* \
33 $fs/usr/local/Brother/sane/GrayCmData/$i
34 chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/*
35 done
36 cp $src/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \
37 $fs/usr/lib/sane/libsane-brother.so.1.0.7
38 ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1
39 ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so
40 cp $src/brscan/libbrscandec/libbrscandec.so.1.0.0 \
41 $fs/usr/lib/libbrscandec.so.1.0.0
42 chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0
43 ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1
44 ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so
45 cp $src/brscan/libbrcolm/libbrcolm.so.1.0.0 \
46 $fs/usr/lib/libbrcolm.so.1.0.0
47 ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1
48 ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so
49 cp $src/brscan/mk_package/Brsane.ini \
50 $fs/usr/local/Brother/sane/Brsane.ini
51 cp $src/brscan/mk_package/brsanenetdevice.cfg \
52 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
53 chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
54 cp $src/brscan/netconfig/brsaneconfig \
55 $fs/usr/local/Brother/sane/brsaneconfig
56 ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig
57 cp $src/brscan/mk_package/setupSaneScan \
58 $fs/usr/local/Brother/sane/setupSaneScan
59 chmod 755 $fs/usr/local/Brother/sane/setupSaneScan
60 }
62 # Pre and post install and remove commands for Tazpkg.
63 post_install()
64 {
65 chroot $1/ /usr/local/Brother/sane/setupSaneScan -i
66 }
68 pre_remove()
69 {
70 chroot $1/ /usr/local/Brother/sane/setupSaneScan -e
71 }