# SliTaz package receipt. PACKAGE="firefox-official-fr" lang="fr" VERSION="77.0" CATEGORY="network" TAGS="web-browser" SHORT_DESC="Official Firefox build by the Mozilla foundation (French language)." MAINTAINER="al.bobylev@gmail.com" LICENSE="MPL2" WEB_SITE="https://www.mozilla.org/firefox" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2" PROVIDE="firefox-official browser-html5" SUGGESTED="vlc" DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt libwrap" CONFIG_FILES="/opt/mozilla/firefox/distribution/policies.json" HOST_ARCH="i486" # What is the latest version available today? current_version() { wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \ sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { # Installation path fx='/opt/mozilla/firefox' mkdir -p $install$fx/distribution mkdir -p $install/usr/bin mkdir -p $install/usr/share/applications mkdir -p $install/usr/share/icons/hicolor/128x128/apps # Copy everything cp -a $src/* $install$fx # Executable ln -s $fx/firefox $install/usr/bin/firefox-official # Icons ln -s $fx/browser/icons/mozicon128.png \ $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png for size in 16 32 48 do icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps" mkdir -p $icon_folder ln -s $fx/browser/chrome/icons/default/default$size.png \ $icon_folder/firefox-official.png done # Allow user updates (save user's and our traffic) # chmod -R a+w $install$fx # Inhibit unprivileged user from updating, # because 77.0 is the last version that works with glibc-2.14.1 # Desktop shortcut cp $WOK/firefox-official/stuff/firefox-official.desktop \ $install/usr/share/applications # Disable update cp $WOK/firefox-official/stuff/policies.json \ $install$fx/distribution } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs ln -s firefox-official $fs/usr/bin/browser-html5 }