wok annotate firefox-langpack-it/receipt @ rev 13893

Add firefox-langpak-it (thanks ernia)
author Richard Dunbar <mojo@slitaz.org>
date Fri Jan 18 00:51:04 2013 +0000 (2013-01-18)
parents
children 1921d455d1f6
rev   line source
mojo@13893 1 # SliTaz package receipt.
mojo@13893 2
mojo@13893 3 PACKAGE="firefox-langpack-it"
mojo@13893 4 VERSION="10.0.2"
mojo@13893 5 CATEGORY="network"
mojo@13893 6 SHORT_DESC="Italian Language Package for firefox"
mojo@13893 7 MAINTAINER="monghitri@aruba.it"
mojo@13893 8 DEPENDS="firefox"
mojo@13893 9 WEB_SITE="http://www.mozilla.com"
mojo@13893 10 LANG=$(echo $PACKAGE | cut -d'-' -f3 | tr '_' '-')
mojo@13893 11 LANG_DIR="langpack-$LANG@firefox.mozilla.org"
mojo@13893 12 TARBALL="$PACKAGE-$VERSION.zip"
mojo@13893 13 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$LANG.xpi"
mojo@13893 14
mojo@13893 15 # Rules to gen a SliTaz package suitable for Tazpkg.
mojo@13893 16 genpkg_rules()
mojo@13893 17 {
mojo@13893 18 EXTDIR="$fs/usr/lib/firefox/extensions/$LANG_DIR"
mojo@13893 19 mkdir -p $EXTDIR
mojo@13893 20 cp -a $src/* $EXTDIR
mojo@13893 21 }
mojo@13893 22
mojo@13893 23 post_install()
mojo@13893 24 {
mojo@13893 25 echo ""
mojo@13893 26 echo "Use the code below to change locale of firefox in shell:"
mojo@13893 27 echo "sed -i '/pref/s/en-US/$LANG/' /etc/firefox/pref/firefox-l10n.js"
mojo@13893 28 echo ""
mojo@13893 29 }