wok-next view firefox-official/receipt @ rev 20701

tor: update (b)deps.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 25 01:13:33 2018 +0300 (2018-05-25)
parents 10d3d9504ec6
children d958fec46c9f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="firefox-official"
4 VERSION="59.0.3"
5 CATEGORY="network"
6 SHORT_DESC="Official Firefox build by the Mozilla foundation"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="http://www.mozilla.org/firefox"
10 HOST_ARCH="i486 x86_64"
12 TARBALL="firefox-${ARCH/i486/i686}-en-US-$VERSION.tar.bz2"
13 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/en-US/firefox-$VERSION.tar.bz2"
15 fo='firefox-official'
16 SPLIT="$fo-de:de $fo-es:es $fo-fr:fr $fo-it:it $fo-pt-BR:pt-BR $fo-ru:ru \
17 $fo-uk:uk"
19 compile_rules() {
20 case $SET in
21 '') lang='en-US';;
22 es) lang='es-ES';;
23 *) lang=$SET;;
24 esac
26 TARBALL="firefox-${ARCH/i486/i686}-$lang-$VERSION.tar.bz2"
27 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/$lang/firefox-$VERSION.tar.bz2"
28 rm -r $src/*
29 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
30 tar -xf $SRC/$TARBALL 2>/dev/null
33 # Installation path
34 fx='/opt/mozilla/firefox'
36 mkdir -p \
37 $install$fx \
38 $install/usr/bin \
39 $install/usr/share/applications
41 # Copy everything
42 cp -a $src/firefox/* $install$fx
44 # Executable
45 ln -s $fx/firefox $install/usr/bin/firefox-official
47 # Icons
48 for size in 16 32 48 128; do
49 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
50 mkdir -p $icon_folder
51 ln -s $fx/browser/chrome/icons/default/default$size.png \
52 $icon_folder/firefox-official.png
53 done
55 # Make symlinks relative
56 fix symlinks
58 # Allow user updates (save user's and our traffic)
59 chmod -R o+w $install$fx
61 # Desktop shortcuts
62 cp $stuff/*.desktop $install/usr/share/applications
64 # Link to "generic" browser-html5
65 ln -s firefox-official $install/usr/bin/browser-html5
67 # Fix ownership
68 chown -R root:root $install
70 # Clean
71 rm -r $src
72 }
74 genpkg_rules() {
75 PROVIDE="firefox-official browser-html5"
76 case $PACKAGE in
77 firefox-official)
78 lang="English"
79 PROVIDE="browser-html5"
80 ;;
81 *-de) lang="German";;
82 *-es) lang="Spanish";;
83 *-fr) lang="French";;
84 *-it) lang="Italian";;
85 *-pt-BR) lang="Portuguese (Brazil)";;
86 *-ru) lang="Russian";;
87 *-uk) lang="Ukrainian";;
88 esac
89 CAT="network|$lang language"
90 cp -a $install/* $fs
91 DEPENDS="atk cairo dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk+ \
92 gtk+3 pango xorg-libX11 xorg-libXcomposite xorg-libXdamage xorg-libXext \
93 xorg-libXfixes xorg-libXrender xorg-libXt xorg-libxcb"
94 TAGS="web-browser"
95 }