wok rev 12836

retawq: cross-compile for ARM and update bookmarks
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 22 19:06:11 2012 +0200 (2012-05-22)
parents b61c615f20eb
children 05a0ed0c2af0
files retawq/receipt retawq/stuff/skel/.retawq/bookmarks.html retawq/stuff/skel/.retawq/config
line diff
     1.1 --- a/retawq/receipt	Tue May 22 18:12:44 2012 +0200
     1.2 +++ b/retawq/receipt	Tue May 22 19:06:11 2012 +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  }
     2.1 --- a/retawq/stuff/skel/.retawq/bookmarks.html	Tue May 22 18:12:44 2012 +0200
     2.2 +++ b/retawq/stuff/skel/.retawq/bookmarks.html	Tue May 22 19:06:11 2012 +0200
     2.3 @@ -9,16 +9,13 @@
     2.4  
     2.5  <ul>
     2.6  	<li><a href="http://localhost/">http://localhost/</a></li>
     2.7 -	<li><a href="http://localhost/~hacker/">http://localhost/~hacker/</a></li>
     2.8 -	<li><a href="http://localhost/doc/">http://localhost/doc/</a></li>
     2.9  	<li><a href="http://www.slitaz.org/">www.slitaz.org</a></li>
    2.10 -	<li><a href="http://www.libordux.org/">www.libordux.org</a></li>
    2.11 -	<li><a href="http://www.tuxfamily.org/">www.tuxfamily.org</a></li>  
    2.12 -	<li><a href="http://freshmeat.net/">freshmeat.net</a></li>
    2.13 +	<li><a href="http://forum.slitaz.org/">forum.slitaz.org</a></li>
    2.14 +	<li><a href="http://doc.slitaz.org/">doc.slitaz.org</a></li>
    2.15 +	<li><a href="http://hg.slitaz.org/">hg.slitaz.org</a></li>
    2.16  	<li><a href="http://www.gnu.org/">www.gnu.org</a></li>
    2.17  	<li><a href="http://www.kernel.org/">www.kernel.org</a></li>
    2.18  	<li><a href="http://www.busybox.net/">www.busybox.net</a></li>
    2.19 -	<li><a href="http://www.lighttpd.net/">www.lighttpd.net</a></li>
    2.20  	<li><a href="http://www.google.com/">www.google.com</a></li>
    2.21  </ul>
    2.22  
     3.1 --- a/retawq/stuff/skel/.retawq/config	Tue May 22 18:12:44 2012 +0200
     3.2 +++ b/retawq/stuff/skel/.retawq/config	Tue May 22 19:06:11 2012 +0200
     3.3 @@ -23,7 +23,7 @@
     3.4  # Allow any ("*") CGI scripts in /var/www directory.
     3.5  local-cgi
     3.6   allow /var/www/cgi-bin/*
     3.7 - allow /home/hacker/Public/cgi-bin/*
     3.8 + allow /home/tux/Public/cgi-bin/*
     3.9  
    3.10  # Maximum number of automatic redirections; we need to access a completely
    3.11  # screwed server which requires more than 10 redirections.