wok annotate firefox-official/receipt @ rev 18803
firefox-official: allow updates; misc tiny edits
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jan 12 19:09:34 2016 +0200 (2016-01-12) |
parents | 12758fe1494b |
children | 8b63895e0cae |
rev | line source |
---|---|
pankso@16706 | 1 # SliTaz package receipt. |
pankso@16706 | 2 |
pankso@16706 | 3 PACKAGE="firefox-official" |
al@18792 | 4 VERSION="43.0.4" |
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 |
pankso@16706 | 50 } |
pankso@16706 | 51 |
pankso@16706 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16706 | 53 genpkg_rules() |
pankso@16706 | 54 { |
al@18476 | 55 cp -a $install/* $fs |
pankso@16706 | 56 } |