wok-6.x view brscan/receipt @ rev 18342
Up: xfburn (0.5.4)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Thu Sep 10 22:26:47 2015 +0000 (2015-09-10) |
parents | 3da79e1300fb |
children | 86d61e110274 |
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 LICENSE="GPL2"
9 SOURCE="$PACKAGE-src"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html"
12 WGET_URL="http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/$TARBALL"
13 TAGS="scanner driver"
15 DEPENDS="sane-backends ncurses"
16 BUILD_DEPENDS="file ncurses-dev libusb-compat-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/brscan
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --sysconfdir=/etc --localstatedir=/var \
24 --mandir=/usr/share/man \
25 $CONFIGURE_ARGS || return 1
26 sed -i '/mk_package/d' Makefile
27 make -j1 && {
28 cd ..
29 mkdir -p $DESTDIR
30 cp -a brscan $DESTDIR
31 }
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $fs/usr/lib/sane
38 for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \
39 ZL2 ZL2FB ZLe ZLeFB ; do
40 mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i
41 cp -a $install/brscan/libbrcolm/GrayCmData/$i/* \
42 $fs/usr/local/Brother/sane/GrayCmData/$i
43 chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/*
44 done
45 cp $install/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \
46 $fs/usr/lib/sane/libsane-brother.so.1.0.7
47 ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1
48 ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so
49 cp $install/brscan/libbrscandec/libbrscandec.so.1.0.0 \
50 $fs/usr/lib/libbrscandec.so.1.0.0
51 chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0
52 ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1
53 ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so
54 cp $install/brscan/libbrcolm/libbrcolm.so.1.0.0 \
55 $fs/usr/lib/libbrcolm.so.1.0.0
56 ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1
57 ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so
58 cp $install/brscan/mk_package/Brsane.ini \
59 $fs/usr/local/Brother/sane/Brsane.ini
60 cp $install/brscan/mk_package/brsanenetdevice.cfg \
61 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
62 chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg
63 cp $install/brscan/netconfig/brsaneconfig \
64 $fs/usr/local/Brother/sane/brsaneconfig
65 ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig
66 cp $install/brscan/mk_package/setupSaneScan \
67 $fs/usr/local/Brother/sane/setupSaneScan
68 chmod 755 $fs/usr/local/Brother/sane/setupSaneScan
69 }
71 # Pre and post install and remove commands for Tazpkg.
72 post_install()
73 {
74 chroot $1/ /usr/local/Brother/sane/setupSaneScan -i
75 }
77 pre_remove()
78 {
79 chroot $1/ /usr/local/Brother/sane/setupSaneScan -e
80 }