wok-6.x annotate firefox-official/receipt @ rev 19002
Add: Private and Safe mode desktop shortcut.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Thu Mar 24 02:43:37 2016 -0300 (2016-03-24) |
parents | bec033058a17 |
children | 43ddd13ff6cf |
rev | line source |
---|---|
pankso@16706 | 1 # SliTaz package receipt. |
pankso@16706 | 2 |
pankso@16706 | 3 PACKAGE="firefox-official" |
al@18991 | 4 VERSION="45.0.1" |
pankso@16706 | 5 CATEGORY="network" |
al@18767 | 6 SHORT_DESC="Official Firefox build by the Mozilla foundation (English language)" |
pankso@16706 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16706 | 8 LICENSE="MPL2" |
pankso@16706 | 9 WEB_SITE="http://www.mozilla.org/firefox" |
al@18476 | 10 TARBALL="firefox-$VERSION.tar.bz2" |
al@18699 | 11 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/en-US/$TARBALL" |
al@17501 | 12 TAGS="web-browser" |
pankso@16706 | 13 HOST_ARCH="i486" |
pankso@16706 | 14 |
pankso@16706 | 15 DEPENDS="gtk+" |
pankso@16706 | 16 |
pankso@16706 | 17 # Rules to configure and make the package. |
pankso@16706 | 18 compile_rules() |
pankso@16706 | 19 { |
al@18803 | 20 # Installation path |
al@18803 | 21 fx='/opt/mozilla/firefox' |
al@18803 | 22 |
pankso@16706 | 23 mkdir -p \ |
al@18803 | 24 $install$fx \ |
al@18476 | 25 $install/usr/bin \ |
al@18803 | 26 $install/usr/share/applications \ |
al@18476 | 27 $install/usr/share/icons/hicolor/128x128/apps |
al@18476 | 28 |
al@18803 | 29 # Copy everything |
al@18803 | 30 cp -a $src/* $install$fx |
al@18476 | 31 |
al@18803 | 32 # Executable |
al@18803 | 33 ln -s $fx/firefox $install/usr/bin/firefox-official |
al@18476 | 34 |
al@18803 | 35 # Icons |
al@18803 | 36 ln -s $fx/browser/icons/mozicon128.png \ |
al@18803 | 37 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png |
al@18803 | 38 for size in 16 32 48; do |
al@18803 | 39 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps" |
al@18803 | 40 mkdir -p $icon_folder |
al@18803 | 41 ln -s $fx/browser/chrome/icons/default/default$size.png \ |
al@18803 | 42 $icon_folder/firefox-official.png |
al@18803 | 43 done |
al@18803 | 44 |
al@18803 | 45 # Allow user updates (save user's and our traffic) |
al@18803 | 46 chmod -R a+w $install$fx |
al@18803 | 47 |
al@18803 | 48 # Desktop shortcut |
al@18803 | 49 cp $stuff/firefox-official.desktop $install/usr/share/applications |
hackdorte@19002 | 50 cp $stuff/firefox-official-private.desktop $install/usr/share/applications |
hackdorte@19002 | 51 cp $stuff/firefox-official-safe.desktop $install/usr/share/applications |
pankso@16706 | 52 } |
pankso@16706 | 53 |
pankso@16706 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16706 | 55 genpkg_rules() |
pankso@16706 | 56 { |
al@18476 | 57 cp -a $install/* $fs |
pankso@16706 | 58 } |