wok annotate firefox-official-fr/receipt @ rev 20564
Up httrack (3.49.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 12 22:54:16 2018 +0100 (2018-12-12) |
parents | 6f3f07185f43 |
children | d3d2a15d3d0d |
rev | line source |
---|---|
al@18570 | 1 # SliTaz package receipt. |
al@18570 | 2 |
al@18570 | 3 PACKAGE="firefox-official-fr" |
al@18570 | 4 lang="fr" |
pascal@20495 | 5 VERSION="62.0.3" |
al@18570 | 6 CATEGORY="network" |
al@18570 | 7 SHORT_DESC="Official Firefox build by the Mozilla foundation (French language)" |
al@18570 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@18570 | 9 LICENSE="MPL2" |
al@18570 | 10 WEB_SITE="http://www.mozilla.org/firefox" |
al@18570 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@18570 | 12 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2" |
al@18570 | 13 TAGS="web-browser" |
al@19503 | 14 PROVIDE="firefox-official browser-html5" |
al@18570 | 15 HOST_ARCH="i486" |
al@18570 | 16 |
al@19653 | 17 DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 xorg-libXt" |
al@18570 | 18 |
al@18570 | 19 # Rules to configure and make the package. |
al@18570 | 20 compile_rules() |
al@18570 | 21 { |
al@18803 | 22 # Installation path |
al@18803 | 23 fx='/opt/mozilla/firefox' |
al@18803 | 24 |
al@18570 | 25 mkdir -p \ |
al@18803 | 26 $install$fx \ |
al@18570 | 27 $install/usr/bin \ |
al@18570 | 28 $install/usr/share/applications \ |
al@18570 | 29 $install/usr/share/icons/hicolor/128x128/apps |
al@18570 | 30 |
al@18803 | 31 # Copy everything |
al@18803 | 32 cp -a $src/* $install$fx |
al@18570 | 33 |
al@18803 | 34 # Executable |
al@18803 | 35 ln -s $fx/firefox $install/usr/bin/firefox-official |
al@18570 | 36 |
al@18570 | 37 # Icons |
al@18803 | 38 ln -s $fx/browser/icons/mozicon128.png \ |
al@18570 | 39 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png |
al@18570 | 40 for size in 16 32 48; do |
al@18570 | 41 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps" |
al@18570 | 42 mkdir -p $icon_folder |
al@18803 | 43 ln -s $fx/browser/chrome/icons/default/default$size.png \ |
al@18570 | 44 $icon_folder/firefox-official.png |
al@18570 | 45 done |
al@18570 | 46 |
al@18803 | 47 # Allow user updates (save user's and our traffic) |
al@18803 | 48 chmod -R a+w $install$fx |
al@18570 | 49 |
al@18803 | 50 # Desktop shortcut |
al@18570 | 51 cp $stuff/firefox-official.desktop $install/usr/share/applications |
al@18570 | 52 } |
al@18570 | 53 |
al@18570 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18570 | 55 genpkg_rules() |
al@18570 | 56 { |
al@18570 | 57 cp -a $install/* $fs |
pascal@19104 | 58 ln -s firefox-official $fs/usr/bin/browser-html5 |
al@18570 | 59 } |