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