wok-next diff 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 diff
1.1 --- a/firefox-official/receipt Thu Dec 01 21:07:54 2016 +0200 1.2 +++ b/firefox-official/receipt Fri May 25 01:13:33 2018 +0300 1.3 @@ -1,60 +1,95 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="firefox-official" 1.8 -VERSION="50.0.2" 1.9 +VERSION="59.0.3" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Official Firefox build by the Mozilla foundation (English language)" 1.12 +SHORT_DESC="Official Firefox build by the Mozilla foundation" 1.13 MAINTAINER="al.bobylev@gmail.com" 1.14 LICENSE="MPL2" 1.15 WEB_SITE="http://www.mozilla.org/firefox" 1.16 -TARBALL="firefox-$VERSION.tar.bz2" 1.17 -WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/en-US/$TARBALL" 1.18 -TAGS="web-browser" 1.19 -HOST_ARCH="i486" 1.20 -PROVIDE="browser-html5" 1.21 +HOST_ARCH="i486 x86_64" 1.22 1.23 -DEPENDS="alsa-lib cairo dbus-glib gtk+ gtk+3 xorg-libXt" 1.24 +TARBALL="firefox-${ARCH/i486/i686}-en-US-$VERSION.tar.bz2" 1.25 +WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/en-US/firefox-$VERSION.tar.bz2" 1.26 1.27 -# Rules to configure and make the package. 1.28 -compile_rules() 1.29 -{ 1.30 +fo='firefox-official' 1.31 +SPLIT="$fo-de:de $fo-es:es $fo-fr:fr $fo-it:it $fo-pt-BR:pt-BR $fo-ru:ru \ 1.32 +$fo-uk:uk" 1.33 + 1.34 +compile_rules() { 1.35 + case $SET in 1.36 + '') lang='en-US';; 1.37 + es) lang='es-ES';; 1.38 + *) lang=$SET;; 1.39 + esac 1.40 + 1.41 + TARBALL="firefox-${ARCH/i486/i686}-$lang-$VERSION.tar.bz2" 1.42 + WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/$lang/firefox-$VERSION.tar.bz2" 1.43 + rm -r $src/* 1.44 + [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL 1.45 + tar -xf $SRC/$TARBALL 2>/dev/null 1.46 + 1.47 + 1.48 # Installation path 1.49 fx='/opt/mozilla/firefox' 1.50 1.51 mkdir -p \ 1.52 $install$fx \ 1.53 $install/usr/bin \ 1.54 - $install/usr/share/applications \ 1.55 - $install/usr/share/icons/hicolor/128x128/apps 1.56 + $install/usr/share/applications 1.57 1.58 # Copy everything 1.59 - cp -a $src/* $install$fx 1.60 + cp -a $src/firefox/* $install$fx 1.61 1.62 # Executable 1.63 ln -s $fx/firefox $install/usr/bin/firefox-official 1.64 1.65 # Icons 1.66 - ln -s $fx/browser/icons/mozicon128.png \ 1.67 - $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png 1.68 - for size in 16 32 48; do 1.69 + for size in 16 32 48 128; do 1.70 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps" 1.71 mkdir -p $icon_folder 1.72 ln -s $fx/browser/chrome/icons/default/default$size.png \ 1.73 $icon_folder/firefox-official.png 1.74 done 1.75 1.76 + # Make symlinks relative 1.77 + fix symlinks 1.78 + 1.79 # Allow user updates (save user's and our traffic) 1.80 - chmod -R a+w $install$fx 1.81 + chmod -R o+w $install$fx 1.82 1.83 - # Desktop shortcut 1.84 - cp $stuff/firefox-official.desktop $install/usr/share/applications 1.85 - cp $stuff/firefox-official-private.desktop $install/usr/share/applications 1.86 - cp $stuff/firefox-official-safe.desktop $install/usr/share/applications 1.87 + # Desktop shortcuts 1.88 + cp $stuff/*.desktop $install/usr/share/applications 1.89 + 1.90 + # Link to "generic" browser-html5 1.91 + ln -s firefox-official $install/usr/bin/browser-html5 1.92 + 1.93 + # Fix ownership 1.94 + chown -R root:root $install 1.95 + 1.96 + # Clean 1.97 + rm -r $src 1.98 } 1.99 1.100 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.101 -genpkg_rules() 1.102 -{ 1.103 +genpkg_rules() { 1.104 + PROVIDE="firefox-official browser-html5" 1.105 + case $PACKAGE in 1.106 + firefox-official) 1.107 + lang="English" 1.108 + PROVIDE="browser-html5" 1.109 + ;; 1.110 + *-de) lang="German";; 1.111 + *-es) lang="Spanish";; 1.112 + *-fr) lang="French";; 1.113 + *-it) lang="Italian";; 1.114 + *-pt-BR) lang="Portuguese (Brazil)";; 1.115 + *-ru) lang="Russian";; 1.116 + *-uk) lang="Ukrainian";; 1.117 + esac 1.118 + CAT="network|$lang language" 1.119 cp -a $install/* $fs 1.120 - ln -s firefox-official $fs/usr/bin/browser-html5 1.121 + DEPENDS="atk cairo dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk+ \ 1.122 + gtk+3 pango xorg-libX11 xorg-libXcomposite xorg-libXdamage xorg-libXext \ 1.123 + xorg-libXfixes xorg-libXrender xorg-libXt xorg-libxcb" 1.124 + TAGS="web-browser" 1.125 }