wok annotate firefox-official/receipt @ rev 19092

Add brower-html5 virtual package (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 01 10:46:33 2016 +0200 (2016-05-01)
parents d7f8436a2f34
children 8911b42ac90b
rev   line source
pankso@16706 1 # SliTaz package receipt.
pankso@16706 2
pankso@16706 3 PACKAGE="firefox-official"
al@19078 4 VERSION="46.0"
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"
pascal@19091 14 PROVIDE="browser-html5"
pankso@16706 15
al@19079 16 DEPENDS="alsa-lib cairo dbus-glib gtk+ gtk+3 xorg-libXt"
pankso@16706 17
pankso@16706 18 # Rules to configure and make the package.
pankso@16706 19 compile_rules()
pankso@16706 20 {
al@18803 21 # Installation path
al@18803 22 fx='/opt/mozilla/firefox'
al@18803 23
pankso@16706 24 mkdir -p \
al@18803 25 $install$fx \
al@18476 26 $install/usr/bin \
al@18803 27 $install/usr/share/applications \
al@18476 28 $install/usr/share/icons/hicolor/128x128/apps
al@18476 29
al@18803 30 # Copy everything
al@18803 31 cp -a $src/* $install$fx
al@18476 32
al@18803 33 # Executable
al@18803 34 ln -s $fx/firefox $install/usr/bin/firefox-official
al@18476 35
al@18803 36 # Icons
al@18803 37 ln -s $fx/browser/icons/mozicon128.png \
al@18803 38 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
al@18803 39 for size in 16 32 48; do
al@18803 40 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
al@18803 41 mkdir -p $icon_folder
al@18803 42 ln -s $fx/browser/chrome/icons/default/default$size.png \
al@18803 43 $icon_folder/firefox-official.png
al@18803 44 done
al@18803 45
al@18803 46 # Allow user updates (save user's and our traffic)
al@18803 47 chmod -R a+w $install$fx
al@18803 48
al@18803 49 # Desktop shortcut
al@18803 50 cp $stuff/firefox-official.desktop $install/usr/share/applications
hackdorte@19002 51 cp $stuff/firefox-official-private.desktop $install/usr/share/applications
hackdorte@19002 52 cp $stuff/firefox-official-safe.desktop $install/usr/share/applications
pankso@16706 53 }
pankso@16706 54
pankso@16706 55 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16706 56 genpkg_rules()
pankso@16706 57 {
al@18476 58 cp -a $install/* $fs
pascal@19092 59 ln -s firefox-official $fs/usr/bin/browser-html5
pankso@16706 60 }