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