wok-current annotate firefox-official-es/receipt @ rev 24419
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 11:14:46 2022 +0000 (2022-02-11) |
parents | a6d313c5cce7 |
children | 8ae9e1d172f0 |
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" |
Hans-G?nter@23859 | 5 VERSION="77.0" |
al@18727 | 6 CATEGORY="network" |
Hans-G?nter@21135 | 7 TAGS="web-browser" |
Hans-G?nter@21135 | 8 SHORT_DESC="Official Firefox build by the Mozilla foundation (Spanish language)." |
al@18727 | 9 MAINTAINER="al.bobylev@gmail.com" |
al@18727 | 10 LICENSE="MPL2" |
al@18727 | 11 WEB_SITE="http://www.mozilla.org/firefox" |
Hans-G?nter@21135 | 12 |
al@18727 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@18727 | 14 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2" |
Hans-G?nter@21135 | 15 |
al@19503 | 16 PROVIDE="firefox-official browser-html5" |
pascal@22342 | 17 DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt libwrap vlc" |
al@18727 | 18 HOST_ARCH="i486" |
al@18727 | 19 |
pascal@24419 | 20 # What is the latest version available today? |
pascal@24419 | 21 current_version() |
pascal@24419 | 22 { |
pascal@24419 | 23 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \ |
pascal@24419 | 24 sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q |
pascal@24419 | 25 } |
pascal@24419 | 26 |
al@18727 | 27 # Rules to configure and make the package. |
al@18727 | 28 compile_rules() |
al@18727 | 29 { |
al@18803 | 30 # Installation path |
al@18803 | 31 fx='/opt/mozilla/firefox' |
al@18803 | 32 |
Hans-G?nter@21135 | 33 mkdir -p \ |
Hans-G?nter@21135 | 34 $install$fx \ |
Hans-G?nter@21135 | 35 $install/usr/bin \ |
Hans-G?nter@21135 | 36 $install/usr/share/applications \ |
al@18727 | 37 $install/usr/share/icons/hicolor/128x128/apps |
al@18727 | 38 |
al@18803 | 39 # Copy everything |
al@18803 | 40 cp -a $src/* $install$fx |
al@18727 | 41 |
al@18803 | 42 # Executable |
al@18803 | 43 ln -s $fx/firefox $install/usr/bin/firefox-official |
al@18727 | 44 |
al@18727 | 45 # Icons |
al@18803 | 46 ln -s $fx/browser/icons/mozicon128.png \ |
al@18727 | 47 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png |
al@18727 | 48 for size in 16 32 48; do |
al@18727 | 49 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps" |
al@18727 | 50 mkdir -p $icon_folder |
al@18803 | 51 ln -s $fx/browser/chrome/icons/default/default$size.png \ |
al@18727 | 52 $icon_folder/firefox-official.png |
al@18727 | 53 done |
al@18727 | 54 |
al@18803 | 55 # Allow user updates (save user's and our traffic) |
al@18803 | 56 chmod -R a+w $install$fx |
al@18727 | 57 |
al@18803 | 58 # Desktop shortcut |
al@18727 | 59 cp $stuff/firefox-official.desktop $install/usr/share/applications |
al@18727 | 60 } |
al@18727 | 61 |
al@18727 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18727 | 63 genpkg_rules() |
al@18727 | 64 { |
al@18727 | 65 cp -a $install/* $fs |
pascal@19104 | 66 ln -s firefox-official $fs/usr/bin/browser-html5 |
al@18727 | 67 } |