wok-current rev 9636
Add: firefox-langpack-pt-BR
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Tue Apr 26 17:10:47 2011 +0000 (2011-04-26) |
parents | 57877ce4dbf3 |
children | 50647c0be30b |
files | firefox-langpack-pt-BR/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/firefox-langpack-pt-BR/receipt Tue Apr 26 17:10:47 2011 +0000 1.3 @@ -0,0 +1,30 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="firefox-langpack-pt-BR" 1.7 +VERSION="4.0" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="pt-BR language pack for firefox." 1.10 +MAINTAINER="claudinei@slitaz.org" 1.11 +DEPENDS="firefox" 1.12 +LANG="${PACKAGE:17}" 1.13 +LANG_DIR="langpack-$LANG@firefox.mozilla.org" 1.14 +TARBALL="$LANG.xpi" 1.15 +WEB_SITE="http://www.mozilla.org" 1.16 +WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + DEST="$fs/usr/lib/firefox-$VERSION/extensions/$LANG_DIR" 1.22 + mkdir -p $DEST 1.23 + cp -a $src/* $DEST 1.24 +} 1.25 + 1.26 +# Pre and Post install commands for tazpkg 1.27 +post_install() 1.28 +{ 1.29 + local pref 1.30 + pref="$1/etc/firefox/pref/firefox.js" 1.31 + echo "Processing post install commands..." 1.32 + grep "matchOS" $pref > /dev/null || echo "pref(\"intl.locale.matchOS\", true);" >> $pref 1.33 +}