wok view firefox-langpack-id/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | 41a539cfe5f8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-langpack-id"
4 VERSION="17.0.11esr"
5 CATEGORY="localization"
6 SHORT_DESC="Indonesian Language Package for firefox"
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="https://www.mozilla.com"
10 LANG=$(echo $PACKAGE | cut -d'-' -f3 | tr '_' '-')
11 LANG_DIR="langpack-$LANG@firefox.mozilla.org"
12 TARBALL="$PACKAGE-$VERSION.zip"
13 WGET_URL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/xpi/$LANG.xpi"
15 DEPENDS="firefox"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \
21 sed '/firefox\/releases\/[0-9]/!d;s|.*firefox/releases/\([^/]*\)/.*|\1|' | sort -Vr | sed q
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 EXTDIR="$fs/usr/lib/firefox-$VERSION/extensions/$LANG_DIR"
28 mkdir -p $EXTDIR
29 cp -a $src/* $EXTDIR
30 }