wok-next annotate retawq/receipt @ 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 8be66f03fbd2
children f1e757631080
rev   line source
pankso@8 1 # SliTaz package receipt.
pankso@8 2
pankso@8 3 PACKAGE="retawq"
pankso@8 4 VERSION="0.2.6c"
pankso@203 5 CATEGORY="network"
pankso@8 6 SHORT_DESC="Text mode Web browser."
pankso@8 7 MAINTAINER="pankso@slitaz.org"
pankso@8 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@8 9 WEB_SITE="http://retawq.sourceforge.net/"
pankso@8 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4972 11 TAGS="browser"
pankso@12836 12 HOST_ARCH="i486 arm"
pankso@12836 13
pankso@12836 14 DEPENDS="ncurses"
pankso@12836 15 BUILD_DEPENDS="ncurses-dev"
pankso@8 16
pankso@8 17 # Rules to configure and make the package.
pankso@8 18 compile_rules()
pankso@8 19 {
pankso@12836 20 # We have no locale support on ARM actually
pankso@12836 21 case "$ARCH" in
pankso@12836 22 arm) opts="" ;;
pankso@12836 23 i?86) opts="--enable-i18n" ;;
pankso@12836 24 esac
pankso@890 25 cd $src
pankso@890 26 ./configure \
pankso@890 27 --enable-local-cgi \
pankso@890 28 --path-prefix=/usr \
pankso@890 29 --path-doc=/usr/share/doc/retawq \
pankso@12836 30 --path-man=/usr/share/man $opts &&
pankso@890 31 make
pankso@8 32 }
pankso@8 33
pankso@12836 34 # The base webbrows for ARM, so check
pankso@12836 35 testsuite()
pankso@12836 36 {
pankso@12836 37 readelf -h $src/retawq
pankso@12836 38 }
pankso@12836 39
pankso@8 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8 41 genpkg_rules()
pankso@8 42 {
pankso@12836 43 mkdir -p $fs/etc $fs/usr/bin
pankso@890 44 cp -a $src/retawq $fs/usr/bin
pankso@12836 45 cp -a $stuff/skel $fs/etc
pankso@12836 46 # I18n
pankso@12836 47 for lang in $LOCALE; do
pankso@12836 48 if [ -f "$src/i18n/$lang.mo" ]; then
pankso@12836 49 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
pankso@12836 50 cp $src/i18n/$lang.mo \
pankso@12836 51 $fs/usr/share/locale/$lang/LC_MESSAGES/retawq.mo
pankso@12836 52 fi
pankso@12836 53 done
pankso@8 54 }