wok annotate retawq/receipt @ rev 24924

Add as & asxxxx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 13 10:27:34 2022 +0000 (2022-04-13)
parents 60b4b85c9db7
children 7dd01dedad38
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"
al@19543 6 SHORT_DESC="Multi-threaded web browser for text terminals"
pankso@8 7 MAINTAINER="pankso@slitaz.org"
al@14904 8 LICENSE="GPL2"
al@19543 9 WEB_SITE="http://retawq.sourceforge.net/"
pankso@8 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@8 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@17501 12 TAGS="web-browser"
pankso@12836 13 HOST_ARCH="i486 arm"
pankso@12836 14
llevrel@20641 15 DEPENDS="ncurses libtinfo openssl"
pascal@20650 16 BUILD_DEPENDS="ncurses-dev gettext-tools libtinfo openssl-dev"
pankso@8 17
pascal@24348 18 # What is the latest version available today?
pascal@24348 19 current_version()
pascal@24348 20 {
pascal@24348 21 wget -O - https://sourceforge.net/projects/retawq/files/retawq/ 2>/dev/null | \
pascal@24348 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 23 sed '/scope="row/!d;s|.*/retawq-||;s|.tar.*||;q'
pascal@24348 24 }
pascal@24348 25
pankso@8 26 # Rules to configure and make the package.
pankso@8 27 compile_rules()
pankso@8 28 {
pascal@20649 29 # regenerate *.mo files (shipped ones are missed headers that lead to
pascal@20649 30 # thousand of errors when compressor normalize catalogs)
pascal@20649 31 for i in i18n/*.mo ; do
pascal@20649 32 rm $i && msgfmt -o $i ${i/mo/po}
pascal@20649 33 done
pascal@20649 34
al@19543 35 export LDFLAGS="-ltinfo"
pankso@12836 36 # We have no locale support on ARM actually
pankso@12836 37 case "$ARCH" in
al@19543 38 arm) opts="" ;;
pankso@12836 39 i?86) opts="--enable-i18n" ;;
pankso@12836 40 esac
al@19543 41 patch -p1 -i $stuff/retawq.patch
al@19543 42
pankso@890 43 ./configure \
pankso@890 44 --enable-local-cgi \
llevrel@20641 45 --set-tls=2 \
pankso@890 46 --path-prefix=/usr \
pankso@890 47 --path-doc=/usr/share/doc/retawq \
al@19543 48 --path-man=/usr/share/man \
al@19543 49 $opts &&
al@19543 50 make && make install
al@19543 51
al@19543 52 mkdir -p $install/usr/share/applications $install/etc
al@19543 53 cp $stuff/retawq.desktop $install/usr/share/applications
al@19543 54 cp -a $stuff/skel $install/etc
pankso@8 55 }
pankso@8 56
al@19543 57 # The base web browser for ARM, so check
pankso@12836 58 testsuite()
pankso@12836 59 {
pankso@12836 60 readelf -h $src/retawq
pankso@12836 61 }
pankso@12836 62
pankso@8 63 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8 64 genpkg_rules()
pankso@8 65 {
al@19543 66 cook_copy_folders bin skel
pankso@8 67 }