wok view brscan/receipt @ rev 4135
Up: xfwm4, xfwm4-themes (4.6.1)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Sep 20 13:28:44 2009 +0000 (2009-09-20) |
parents | f17b7217de2d |
children | 4273e906522b |
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"
12 DEPENDS="sane-backends"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src/brscan
18 ./configure --prefix=/usr --infodir=/usr/share/info \
19 --sysconfdir=/etc --localstatedir=/var \
20 --mandir=/usr/share/man \
21 $CONFIGURE_ARGS || return 1
22 sed -i '/mk_package/d' Makefile
23 make
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin $fs/usr/lib/sane
30 for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \
31 ZL2 ZL2FB ZLe ZLeFB ; do
32 mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i
33 cp -a $src/brscan/libbrcolm/GrayCmData/$i/* \
34 $fs/usr/local/Brother/sane/GrayCmData/$i
35 chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/*
36 done
37 cp $src/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \
38 $fs/usr/lib/sane/libsane-brother.so.1.0.7
39 ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1
40 ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so
41 cp $src/brscan/libbrscandec/libbrscandec.so.1.0.0 \
42 $fs/usr/lib/libbrscandec.so.1.0.0
43 chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0
44 ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1
45 ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so
46 cp $src/brscan/libbrcolm/libbrcolm.so.1.0.0 \
47 $fs/usr/lib/libbrcolm.so.1.0.0
48 ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1
49 ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so
50 cp $src/brscan/mk_package/Brsane.ini \
51 $fs/usr/local/Brother/sane/Brsane.ini
52 cp $src/brscan/mk_package/brsanenetdevice.cfg \
53 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
54 chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
55 cp $src/brscan/netconfig/brsaneconfig \
56 $fs/usr/local/Brother/sane/brsaneconfig
57 ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig
58 cp $src/brscan/mk_package/setupSaneScan \
59 $fs/usr/local/Brother/sane/setupSaneScan
60 chmod 755 $fs/usr/local/Brother/sane/setupSaneScan
61 }
63 # Pre and post install and remove commands for Tazpkg.
64 post_install()
65 {
66 chroot $1/ /usr/local/Brother/sane/setupSaneScan -i
67 }
69 pre_remove()
70 {
71 chroot $1/ /usr/local/Brother/sane/setupSaneScan -e
72 }