wok-stable diff brscan/receipt @ rev 3832
Add: python-kiwi (1.9.26)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Thu Aug 06 23:56:18 2009 +0000 (2009-08-06) |
parents | |
children | 8cdc8f3e6e3e |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/brscan/receipt Thu Aug 06 23:56:18 2009 +0000 1.3 @@ -0,0 +1,71 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="brscan" 1.7 +VERSION="0.2.4" 1.8 +CATEGORY="office" 1.9 +SHORT_DESC="Brother Scanner driver for SANE." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +SOURCE="$PACKAGE-src" 1.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html" 1.14 +WGET_URL="http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $src/brscan 1.20 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.21 + --sysconfdir=/etc --localstatedir=/var \ 1.22 + --mandir=/usr/share/man \ 1.23 + $CONFIGURE_ARGS || return 1 1.24 + sed -i '/mk_package/d' Makefile 1.25 + make 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + mkdir -p $fs/usr/bin $fs/usr/lib/sane 1.32 + for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \ 1.33 + ZL2 ZL2FB ZLe ZLeFB ; do 1.34 + mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i 1.35 + cp -a $src/brscan/libbrcolm/GrayCmData/$i/* \ 1.36 + $fs/usr/local/Brother/sane/GrayCmData/$i 1.37 + chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/* 1.38 + done 1.39 + cp $src/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \ 1.40 + $fs/usr/lib/sane/libsane-brother.so.1.0.7 1.41 + ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1 1.42 + ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so 1.43 + cp $src/brscan/libbrscandec/libbrscandec.so.1.0.0 \ 1.44 + $fs/usr/lib/libbrscandec.so.1.0.0 1.45 + chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0 1.46 + ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1 1.47 + ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so 1.48 + cp $src/brscan/libbrcolm/libbrcolm.so.1.0.0 \ 1.49 + $fs/usr/lib/libbrcolm.so.1.0.0 1.50 + ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1 1.51 + ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so 1.52 + cp $src/brscan/mk_package/Brsane.ini \ 1.53 + $fs/usr/local/Brother/sane/Brsane.ini 1.54 + cp $src/brscan/mk_package/brsanenetdevice.cfg \ 1.55 + $fs/usr/local/Brother/sane/brsanenetdevice.cfg 1.56 + chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg 1.57 + cp $src/brscan/netconfig/brsaneconfig \ 1.58 + $fs/usr/local/Brother/sane/brsaneconfig 1.59 + ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig 1.60 + cp $src/brscan/mk_package/setupSaneScan \ 1.61 + $fs/usr/local/Brother/sane/setupSaneScan 1.62 + chmod 755 $fs/usr/local/Brother/sane/setupSaneScan 1.63 +} 1.64 + 1.65 +# Pre and post install and remove commands for Tazpkg. 1.66 +post_install() 1.67 +{ 1.68 + chroot $1/ /usr/local/Brother/sane/setupSaneScan -i 1.69 +} 1.70 + 1.71 +pre_remove() 1.72 +{ 1.73 + chroot $1/ /usr/local/Brother/sane/setupSaneScan -e 1.74 +}