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