SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "firefox-langpack-zh_CN"

# SliTaz package receipt.

PACKAGE="firefox-langpack-zh_CN"
VERSION="10.0.2"
CATEGORY="network"
SHORT_DESC="Chinese Language Package for firefox"
MAINTAINER="lufeng369@gmail.com"
DEPENDS="firefox"
WEB_SITE="http://www.mozilla.com"
LANG=`echo $PACKAGE | cut -d'-' -f3 | tr '_' '-'`
LANG_DIR="langpack-$LANG@firefox.mozilla.org"
TARBALL="$PACKAGE-$VERSION.zip"
WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/zh-CN.xpi"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    EXTDIR="$fs/usr/lib/firefox/extensions/$LANG_DIR"
    mkdir -p $EXTDIR
    cp -a $src/* $EXTDIR
}

post_install()
{
    echo ""
    echo "Use the code below to change locale of firefox in shell:"
    echo "sed -i '/pref/s/en-US/$LANG/' /etc/firefox/pref/firefox-l10n.js"
    echo ""
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)