wok-current annotate firefox-official-es/receipt @ rev 19197

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