wok-current view brscan/receipt @ rev 8356
Down: poppler to 0.14.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Feb 03 15:40:53 2011 +0000 (2011-02-03) |
parents | 8cdc8f3e6e3e |
children | 1314a8901694 |
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"
13 TAGS="scanner driver"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src/brscan
19 ./configure --prefix=/usr --infodir=/usr/share/info \
20 --sysconfdir=/etc --localstatedir=/var \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS || return 1
23 sed -i '/mk_package/d' Makefile
24 make
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/lib/sane
31 for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \
32 ZL2 ZL2FB ZLe ZLeFB ; do
33 mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i
34 cp -a $src/brscan/libbrcolm/GrayCmData/$i/* \
35 $fs/usr/local/Brother/sane/GrayCmData/$i
36 chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/*
37 done
38 cp $src/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \
39 $fs/usr/lib/sane/libsane-brother.so.1.0.7
40 ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1
41 ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so
42 cp $src/brscan/libbrscandec/libbrscandec.so.1.0.0 \
43 $fs/usr/lib/libbrscandec.so.1.0.0
44 chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0
45 ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1
46 ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so
47 cp $src/brscan/libbrcolm/libbrcolm.so.1.0.0 \
48 $fs/usr/lib/libbrcolm.so.1.0.0
49 ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1
50 ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so
51 cp $src/brscan/mk_package/Brsane.ini \
52 $fs/usr/local/Brother/sane/Brsane.ini
53 cp $src/brscan/mk_package/brsanenetdevice.cfg \
54 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
55 chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
56 cp $src/brscan/netconfig/brsaneconfig \
57 $fs/usr/local/Brother/sane/brsaneconfig
58 ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig
59 cp $src/brscan/mk_package/setupSaneScan \
60 $fs/usr/local/Brother/sane/setupSaneScan
61 chmod 755 $fs/usr/local/Brother/sane/setupSaneScan
62 }
64 # Pre and post install and remove commands for Tazpkg.
65 post_install()
66 {
67 chroot $1/ /usr/local/Brother/sane/setupSaneScan -i
68 }
70 pre_remove()
71 {
72 chroot $1/ /usr/local/Brother/sane/setupSaneScan -e
73 }