wok-next rev 20741

brscan: use SliTaz mirror as $WGET_URL
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 22:56:44 2018 +0300 (2018-05-29)
parents 89e9788caef7
children 8451a0d78012
files brscan/receipt
line diff
     1.1 --- a/brscan/receipt	Tue May 29 21:26:14 2018 +0200
     1.2 +++ b/brscan/receipt	Tue May 29 22:56:44 2018 +0300
     1.3 @@ -7,16 +7,26 @@
     1.4  MAINTAINER="pascal.bellard@slitaz.org"
     1.5  LICENSE="GPL2"
     1.6  WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html"
     1.7 +HOST_ARCH="i486"
     1.8  
     1.9  TARBALL="brscan-src-$VERSION.tar.gz"
    1.10 -WGET_URL="http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/$TARBALL"
    1.11 +#WGET_URL="http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/$TARBALL"
    1.12 +WGET_URL="http://mirror1.slitaz.org/sources/packages/b/$TARBALL"
    1.13  
    1.14  BUILD_DEPENDS="file ncurses-dev libusb-compat-dev"
    1.15  SPLIT="brscan2"
    1.16  
    1.17  compile_rules() {
    1.18 -	cd $src/brscan
    1.19 -	./configure $CONFIGURE_ARGS || return 1
    1.20 +	case $ARCH in
    1.21 +		i?86)
    1.22 +			cd brscan
    1.23 +			./configure $CONFIGURE_ARGS || return 1
    1.24 +			;;
    1.25 +		x86_64)
    1.26 +			cd brscan64
    1.27 +			;;
    1.28 +	esac
    1.29 +
    1.30  	sed -i '/mk_package/d' Makefile
    1.31  	make -j1 &&
    1.32  	{