wok diff retawq/receipt @ rev 14529

Add avfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 18 13:45:09 2013 +0200 (2013-05-18)
parents 8be66f03fbd2
children f1e757631080
line diff
     1.1 --- a/retawq/receipt	Wed Feb 24 11:44:49 2010 +0000
     1.2 +++ b/retawq/receipt	Sat May 18 13:45:09 2013 +0200
     1.3 @@ -5,33 +5,50 @@
     1.4  CATEGORY="network"
     1.5  SHORT_DESC="Text mode Web browser."
     1.6  MAINTAINER="pankso@slitaz.org"
     1.7 -DEPENDS="ncurses"
     1.8 -BUILD_DEPENDS="ncurses-dev"
     1.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.10  WEB_SITE="http://retawq.sourceforge.net/"
    1.11  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.12  TAGS="browser"
    1.13 +HOST_ARCH="i486 arm"
    1.14 +
    1.15 +DEPENDS="ncurses"
    1.16 +BUILD_DEPENDS="ncurses-dev"
    1.17  
    1.18  # Rules to configure and make the package.
    1.19  compile_rules()
    1.20  {
    1.21 +	# We have no locale support on ARM actually
    1.22 +	case "$ARCH" in
    1.23 +		arm) opts="" ;;
    1.24 +		i?86) opts="--enable-i18n" ;;
    1.25 +	esac
    1.26  	cd $src
    1.27  	./configure \
    1.28 -		--enable-i18n \
    1.29  		--enable-local-cgi \
    1.30  		--path-prefix=/usr \
    1.31  		--path-doc=/usr/share/doc/retawq \
    1.32 -		--path-man=/usr/share/man
    1.33 +		--path-man=/usr/share/man $opts &&
    1.34  	make
    1.35  }
    1.36  
    1.37 +# The base webbrows for ARM, so check
    1.38 +testsuite()
    1.39 +{
    1.40 +	readelf -h $src/retawq
    1.41 +}
    1.42 +
    1.43  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.44  genpkg_rules()
    1.45  {
    1.46 -	mkdir -p \
    1.47 -		$fs/etc $fs/usr/bin \
    1.48 -		$fs/usr/share/locale/fr/LC_MESSAGES
    1.49 +	mkdir -p $fs/etc $fs/usr/bin
    1.50  	cp -a $src/retawq $fs/usr/bin
    1.51 -	cp -a $src/i18n/fr.mo $fs/usr/share/locale/fr/LC_MESSAGES/retawq.mo
    1.52 -	cp -a stuff/skel $fs/etc
    1.53 +	cp -a $stuff/skel $fs/etc
    1.54 +	# I18n
    1.55 +	for lang in $LOCALE; do
    1.56 +		if [ -f "$src/i18n/$lang.mo" ]; then
    1.57 +			mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
    1.58 +			cp $src/i18n/$lang.mo \
    1.59 +				$fs/usr/share/locale/$lang/LC_MESSAGES/retawq.mo
    1.60 +		fi
    1.61 +	done
    1.62  }