wok-current view thunderbird-langpack-id/receipt @ rev 25445
itaka: fix wget_url
| author | Pascal Bellard <pascal.bellard@slitaz.org> | 
|---|---|
| date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) | 
| parents | 922f061231c2 | 
| children | 
 line source
     1 # SliTaz package receipt.
     3 PACKAGE="thunderbird-langpack-id"
     4 VERSION="17.0.11esr"
     5 CATEGORY="localization"
     6 SHORT_DESC="Indonesian Language Pack for thunderbird"
     7 MAINTAINER="domcox@slitaz.org"
     8 LICENSE="MPL"
     9 WEB_SITE="https://www.mozillamessaging.com/"
    10 LANG=$(echo $PACKAGE | cut -d'-' -f3 | tr '_' '-')
    11 TARBALL="$PACKAGE-$VERSION.xpi"
    12 WGET_URL="https://ftp.mozilla.org/pub/thunderbird/releases/$VERSION/linux-i686/xpi/$LANG.xpi"
    14 DEPENDS="thunderbird"
    16 # What is the latest version available today?
    17 current_version()
    18 {
    19 	wget -O - https://ftp.mozilla.org/pub/thunderbird/releases/ 2>/dev/null | \
    20 	sed '/[0-9]*\.[0-9]*\.[0-9]*esr/!d;s|.*">||;s|/.*||' | sort -Vr | sed q
    21 }
    23 # Rules to gen a SliTaz package suitable for Tazpkg.
    24 genpkg_rules()
    25 {
    26 	LANG_DIR="langpack-$LANG@thunderbird.mozilla.org"
    27 	EXTDIR="$fs/usr/lib/thunderbird-$VERSION/extensions/$LANG_DIR"
    28 	mkdir -p $EXTDIR
    29 	cp -a $src/* $EXTDIR
    30 }