wok-current annotate firefox-official/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | eecd62c54525 |
children | 3ad63c8fc2f9 |
rev | line source |
---|---|
pankso@16706 | 1 # SliTaz package receipt. |
pankso@16706 | 2 |
pankso@16706 | 3 PACKAGE="firefox-official" |
pascal@25447 | 4 VERSION="77.0" |
pankso@16706 | 5 CATEGORY="network" |
Hans-G?nter@21135 | 6 TAGS="web-browser" |
Hans-G?nter@21135 | 7 SHORT_DESC="Official Firefox build by the Mozilla foundation (English language)." |
al@19453 | 8 MAINTAINER="al.bobylev@gmail.com" |
pankso@16706 | 9 LICENSE="MPL2" |
Hans-G?nter@24448 | 10 WEB_SITE="https://www.mozilla.org/firefox" |
Hans-G?nter@21135 | 11 |
al@18476 | 12 TARBALL="firefox-$VERSION.tar.bz2" |
al@18699 | 13 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/en-US/$TARBALL" |
Hans-G?nter@21135 | 14 |
Hans-G?nter@21135 | 15 PROVIDE="browser-html5" |
Hans-G?nter@24441 | 16 SUGGESTED="vlc" |
Hans-G?nter@24441 | 17 DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt libwrap" |
Hans-G?nter@24448 | 18 |
Hans-G?nter@24448 | 19 CONFIG_FILES="/opt/mozilla/firefox/distribution/policies.json" |
Hans-G?nter@24448 | 20 |
pankso@16706 | 21 HOST_ARCH="i486" |
pankso@16706 | 22 |
pascal@24419 | 23 # What is the latest version available today? |
pascal@24419 | 24 current_version() |
pascal@24419 | 25 { |
pascal@24419 | 26 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \ |
pascal@24419 | 27 sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q |
pascal@24419 | 28 } |
pascal@24419 | 29 |
pankso@16706 | 30 # Rules to configure and make the package. |
pankso@16706 | 31 compile_rules() |
pankso@16706 | 32 { |
al@18803 | 33 # Installation path |
al@18803 | 34 fx='/opt/mozilla/firefox' |
al@18803 | 35 |
Hans-G?nter@24448 | 36 mkdir -p $install$fx/distribution |
Hans-G?nter@24441 | 37 mkdir -p $install/usr/bin |
Hans-G?nter@24441 | 38 mkdir -p $install/usr/share/applications |
Hans-G?nter@24441 | 39 mkdir -p $install/usr/share/icons/hicolor/128x128/apps |
al@18476 | 40 |
al@18803 | 41 # Copy everything |
Hans-G?nter@24441 | 42 cp -a $src/* $install$fx |
al@18476 | 43 |
al@18803 | 44 # Executable |
Hans-G?nter@24441 | 45 ln -s $fx/firefox $install/usr/bin/firefox-official |
al@18476 | 46 |
al@18803 | 47 # Icons |
al@18803 | 48 ln -s $fx/browser/icons/mozicon128.png \ |
al@18803 | 49 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png |
Hans-G?nter@24441 | 50 for size in 16 32 48 |
Hans-G?nter@24441 | 51 do |
al@18803 | 52 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps" |
al@18803 | 53 mkdir -p $icon_folder |
al@18803 | 54 ln -s $fx/browser/chrome/icons/default/default$size.png \ |
al@18803 | 55 $icon_folder/firefox-official.png |
Hans-G?nter@24441 | 56 done |
al@18803 | 57 |
al@18803 | 58 # Allow user updates (save user's and our traffic) |
Hans-G?nter@24441 | 59 # chmod -R a+w $install$fx |
Hans-G?nter@24441 | 60 # Inhibit unprivileged user from updating, |
pascal@25447 | 61 # because 77.0 is the last version that works with glibc-2.14.1 |
al@18803 | 62 |
al@18803 | 63 # Desktop shortcut |
Hans-G?nter@21135 | 64 cp $stuff/firefox-official.desktop \ |
Hans-G?nter@21135 | 65 $install/usr/share/applications |
Hans-G?nter@21135 | 66 cp $stuff/firefox-official-private.desktop \ |
Hans-G?nter@21135 | 67 $install/usr/share/applications |
Hans-G?nter@21135 | 68 cp $stuff/firefox-official-safe.desktop \ |
Hans-G?nter@21135 | 69 $install/usr/share/applications |
Hans-G?nter@24448 | 70 |
Hans-G?nter@24448 | 71 # Disable update |
Hans-G?nter@24448 | 72 cp $stuff/policies.json $install$fx/distribution |
pankso@16706 | 73 } |
pankso@16706 | 74 |
pankso@16706 | 75 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16706 | 76 genpkg_rules() |
pankso@16706 | 77 { |
Hans-G?nter@24441 | 78 cp -a $install/* $fs |
Hans-G?nter@24441 | 79 ln -s firefox-official $fs/usr/bin/browser-html5 |
pankso@16706 | 80 } |