wok annotate brscan/receipt @ rev 12406
Add the missing piece to have a working Compiz 3D desktop: Emerald windo decorator
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 20 18:02:26 2012 +0200 (2012-04-20) |
parents | a01a85f67ef0 |
children | 3da79e1300fb |
rev | line source |
---|---|
pascal@3773 | 1 # SliTaz package receipt. |
pascal@3773 | 2 |
pascal@3773 | 3 PACKAGE="brscan" |
pascal@3773 | 4 VERSION="0.2.4" |
pascal@3773 | 5 CATEGORY="office" |
pascal@3773 | 6 SHORT_DESC="Brother Scanner driver for SANE." |
pascal@3773 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@3773 | 8 SOURCE="$PACKAGE-src" |
pascal@3773 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@3773 | 10 WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html" |
pascal@3773 | 11 WGET_URL="http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/$TARBALL" |
gokhlayeh@12064 | 12 DEPENDS="sane-backends ncurses" |
pascal@9108 | 13 BUILD_DEPENDS="file" |
jozee@4932 | 14 TAGS="scanner driver" |
pascal@3773 | 15 |
pascal@3773 | 16 # Rules to configure and make the package. |
pascal@3773 | 17 compile_rules() |
pascal@3773 | 18 { |
pascal@3773 | 19 cd $src/brscan |
pascal@3773 | 20 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@3773 | 21 --sysconfdir=/etc --localstatedir=/var \ |
pascal@3773 | 22 --mandir=/usr/share/man \ |
pascal@3773 | 23 $CONFIGURE_ARGS || return 1 |
pascal@3773 | 24 sed -i '/mk_package/d' Makefile |
pascal@9109 | 25 make -j1 && { |
pascal@9056 | 26 cd .. |
pascal@9056 | 27 mkdir -p $DESTDIR |
pascal@9056 | 28 cp -a brscan $DESTDIR |
pascal@9056 | 29 } |
pascal@3773 | 30 } |
pascal@3773 | 31 |
pascal@3773 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3773 | 33 genpkg_rules() |
pascal@3773 | 34 { |
pascal@3773 | 35 mkdir -p $fs/usr/bin $fs/usr/lib/sane |
pascal@3773 | 36 for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \ |
pascal@3773 | 37 ZL2 ZL2FB ZLe ZLeFB ; do |
pascal@3773 | 38 mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i |
pascal@9056 | 39 cp -a $_pkg/brscan/libbrcolm/GrayCmData/$i/* \ |
pascal@3773 | 40 $fs/usr/local/Brother/sane/GrayCmData/$i |
pascal@3773 | 41 chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/* |
pascal@3773 | 42 done |
pascal@9056 | 43 cp $_pkg/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \ |
pascal@3773 | 44 $fs/usr/lib/sane/libsane-brother.so.1.0.7 |
pascal@3773 | 45 ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1 |
pascal@3773 | 46 ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so |
pascal@9056 | 47 cp $_pkg/brscan/libbrscandec/libbrscandec.so.1.0.0 \ |
pascal@3773 | 48 $fs/usr/lib/libbrscandec.so.1.0.0 |
pascal@3773 | 49 chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0 |
pascal@3773 | 50 ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1 |
pascal@3773 | 51 ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so |
pascal@9056 | 52 cp $_pkg/brscan/libbrcolm/libbrcolm.so.1.0.0 \ |
pascal@3773 | 53 $fs/usr/lib/libbrcolm.so.1.0.0 |
pascal@3773 | 54 ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1 |
pascal@3773 | 55 ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so |
pascal@9056 | 56 cp $_pkg/brscan/mk_package/Brsane.ini \ |
pascal@3773 | 57 $fs/usr/local/Brother/sane/Brsane.ini |
pascal@9056 | 58 cp $_pkg/brscan/mk_package/brsanenetdevice.cfg \ |
pascal@3773 | 59 $fs/usr/local/Brother/sane/brsanenetdevice.cfg |
pascal@3773 | 60 chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg |
pascal@9056 | 61 cp $_pkg/brscan/netconfig/brsaneconfig \ |
pascal@3773 | 62 $fs/usr/local/Brother/sane/brsaneconfig |
pascal@3773 | 63 ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig |
pascal@9056 | 64 cp $_pkg/brscan/mk_package/setupSaneScan \ |
pascal@3773 | 65 $fs/usr/local/Brother/sane/setupSaneScan |
pascal@3773 | 66 chmod 755 $fs/usr/local/Brother/sane/setupSaneScan |
pascal@3773 | 67 } |
pascal@3773 | 68 |
pascal@3773 | 69 # Pre and post install and remove commands for Tazpkg. |
pascal@3773 | 70 post_install() |
pascal@3773 | 71 { |
pascal@3773 | 72 chroot $1/ /usr/local/Brother/sane/setupSaneScan -i |
pascal@3773 | 73 } |
pascal@3773 | 74 |
pascal@3773 | 75 pre_remove() |
pascal@3773 | 76 { |
pascal@3773 | 77 chroot $1/ /usr/local/Brother/sane/setupSaneScan -e |
pascal@3773 | 78 } |