# SliTaz package receipt.
PACKAGE="firefox-langpack-it"
VERSION="3.6.12"
CATEGORY="network"
SHORT_DESC="Italian Language Package for firefox"
MAINTAINER="xxx@xxx"
DEPENDS="firefox"
BUILD_DEPENDS="unzip"
WEB_SITE="http://www.mozilla.com"
TARBALL="it.xpi"
Path=langpack-it@firefox.mozilla.org
URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL"
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/var/$Path
if [ -f $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi ]; then
unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path
else
[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
wget -O $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi $URL
unzip $SOURCES_REPOSITORY/$PACKAGE-$VERSION.xpi -d $fs/var/$Path
fi
}
post_install()
{
sed -i '/pref/s/en-US/it/' /etc/firefox/pref/firefox-l10n.js
RealPath=/usr/lib/firefox-*/extensions/
cp -af /var/$Path $RealPath
rm -rf /var/$Path
}
post_remove()
{
sed -i '/pref/s/it/en-US/' /etc/firefox/pref/firefox-l10n.js
rm -rf "/usr/lib/firefox-*/extensions/$Path"
}
It looks like you're new here. If you want to get involved, click one of these buttons!