# SliTaz package receipt. PACKAGE="firefox-lang-pt-br" SOURCE="pt-BR" VERSION="3.6.14" CATEGORY="network" SHORT_DESC="pt-BR language pack for firefox." MAINTAINER="claudinei@slitaz.org" DEPENDS="firefox" TARBALL="$SOURCE.xpi" WEB_SITE="http://www.mozilla.org" WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/$TARBALL" # Rules to configure and make the package. compile_rules() { LANGPACK="stuff/langpack-$SOURCE@firefox.mozilla.org" mkdir -p $LANGPACK for source in install.rdf chrome.manifest chrome; do mv $source $LANGPACK done } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { DEST="$fs/usr/lib/firefox-$VERSION/extensions" mkdir -p $DEST cp -a $LANGPACK $DEST } # Pre and Post install commands for tazpkg post_install() { local pref pref="$1/etc/firefox/pref/firefox.js" echo "Processing post install commands..." grep "matchOS" $pref > /dev/null || echo "pref(\"intl.locale.matchOS\", true);" >> $pref } # Clean commands for Tazwok clean_wok() { rm -rf $WOK/$PACKAGE/stuff }