wok-4.x diff sane-backends/receipt @ rev 12398
Up Manaplus to latest version. Thanks for the fix Pascal!
author | Brenton Scott <admin@trixarian.net> |
---|---|
date | Sun Jul 07 04:40:51 2013 +0200 (2013-07-07) |
parents | 4d40b2bc1125 |
children |
line diff
1.1 --- a/sane-backends/receipt Wed May 18 12:26:52 2011 +0200 1.2 +++ b/sane-backends/receipt Sun Jul 07 04:40:51 2013 +0200 1.3 @@ -7,25 +7,30 @@ 1.4 MAINTAINER="pankso@slitaz.org" 1.5 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.6 WEB_SITE="http://www.sane-project.org/" 1.7 -WGET_URL="ftp://ftp.sane-project.org/pub/sane/$PACKAGE-$VERSION/$TARBALL" 1.8 +WGET_URL="ftp://ftp2.sane-project.org/pub/sane/$PACKAGE-$VERSION/$TARBALL" 1.9 1.10 DEPENDS="libusb-compat jpeg tiff zlib libgphoto2 libv4l libltdl" 1.11 +BUILD_DEPENDS="libusb-compat-dev jpeg-dev tiff-dev zlib-dev libv4l-dev \ 1.12 +libgphoto2-dev libtool" 1.13 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 { 1.17 cd $src 1.18 + patch -Np1 -i $stuff/libv4l-0.8.3.patch 1.19 + # fix https://bugs.archlinux.org/task/26114 1.20 + patch -Np1 -i $stuff/xerox_mfp_fix_usb_devices.patch 1.21 ./configure \ 1.22 --prefix=/usr \ 1.23 --sysconfdir=/etc \ 1.24 --mandir=/usr/share/man \ 1.25 $CONFIGURE_ARGS && 1.26 make && 1.27 - make -j 1 DESTDIR=$PWD/_pkg install 1.28 + make -j 1 DESTDIR=$DESTDIR install 1.29 1.30 # copy the missing udev rule 1.31 - [ ! -d $PWD/_pkg/etc/udev/rules.d ] && mkdir -p $PWD/_pkg/etc/udev/rules.d 1.32 - cp -a $src/tools/udev/libsane.rules $PWD/_pkg/etc/udev/rules.d/55-sane.rules 1.33 + [ ! -d $DESTDIR/etc/udev/rules.d ] && mkdir -p $DESTDIR/etc/udev/rules.d 1.34 + cp -a $src/tools/udev/libsane.rules $DESTDIR/etc/udev/rules.d/55-sane.rules 1.35 } 1.36 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 @@ -54,11 +59,11 @@ 1.39 local root 1.40 root=$1 1.41 1.42 - tazpkg reconfigure udev --root=$1 1.43 + tazpkg reconfigure udev --root=$root 1.44 1.45 # add group scanner 1.46 if ! grep -q scanner $root/etc/group ; then 1.47 - addgroup -g 96 scanner 1.48 + chroot "$root/" addgroup -g 96 scanner 1.49 fi 1.50 1.51 echo " ADD yourself to group scanner to use sane: addgroup tux scanner" 1.52 @@ -66,5 +71,5 @@ 1.53 1.54 post_remove() 1.55 { 1.56 - delgroup scanner & >/dev/null 1.57 + chroot "$1/" delgroup scanner & >/dev/null 1.58 }