wok-next view brscan/receipt @ rev 15294

TeXmacs: remove util.h
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 27 09:29:34 2013 +0000 (2013-09-27)
parents 162bb2a173bd
children eb8067417980
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 TAGS="scanner driver"
14 DEPENDS="sane-backends ncurses"
15 BUILD_DEPENDS="file ncurses-dev libusb-compat-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/brscan
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --sysconfdir=/etc --localstatedir=/var \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS || return 1
25 sed -i '/mk_package/d' Makefile
26 make -j1 && {
27 cd ..
28 mkdir -p $DESTDIR
29 cp -a brscan $DESTDIR
30 }
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin $fs/usr/lib/sane
37 for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \
38 ZL2 ZL2FB ZLe ZLeFB ; do
39 mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i
40 cp -a $install/brscan/libbrcolm/GrayCmData/$i/* \
41 $fs/usr/local/Brother/sane/GrayCmData/$i
42 chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/*
43 done
44 cp $install/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \
45 $fs/usr/lib/sane/libsane-brother.so.1.0.7
46 ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1
47 ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so
48 cp $install/brscan/libbrscandec/libbrscandec.so.1.0.0 \
49 $fs/usr/lib/libbrscandec.so.1.0.0
50 chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0
51 ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1
52 ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so
53 cp $install/brscan/libbrcolm/libbrcolm.so.1.0.0 \
54 $fs/usr/lib/libbrcolm.so.1.0.0
55 ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1
56 ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so
57 cp $install/brscan/mk_package/Brsane.ini \
58 $fs/usr/local/Brother/sane/Brsane.ini
59 cp $install/brscan/mk_package/brsanenetdevice.cfg \
60 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
61 chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
62 cp $install/brscan/netconfig/brsaneconfig \
63 $fs/usr/local/Brother/sane/brsaneconfig
64 ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig
65 cp $install/brscan/mk_package/setupSaneScan \
66 $fs/usr/local/Brother/sane/setupSaneScan
67 chmod 755 $fs/usr/local/Brother/sane/setupSaneScan
68 }
70 # Pre and post install and remove commands for Tazpkg.
71 post_install()
72 {
73 chroot $1/ /usr/local/Brother/sane/setupSaneScan -i
74 }
76 pre_remove()
77 {
78 chroot $1/ /usr/local/Brother/sane/setupSaneScan -e
79 }