wok view firefox-official-uk/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
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official-uk"
4 lang="uk"
5 VERSION="77.0"
6 CATEGORY="network"
7 TAGS="web-browser"
8 SHORT_DESC="Official Firefox build by the Mozilla foundation (Ukrainian language)."
9 MAINTAINER="al.bobylev@gmail.com"
10 LICENSE="MPL2"
11 WEB_SITE="http://www.mozilla.org/firefox"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2"
16 PROVIDE="firefox-official browser-html5"
17 DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt libwrap vlc"
18 HOST_ARCH="i486"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \
24 sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Installation path
31 fx='/opt/mozilla/firefox'
33 mkdir -p \
34 $install$fx \
35 $install/usr/bin \
36 $install/usr/share/applications \
37 $install/usr/share/icons/hicolor/128x128/apps
39 # Copy everything
40 cp -a $src/* $install$fx
42 # Executable
43 ln -s $fx/firefox $install/usr/bin/firefox-official
45 # Icons
46 ln -s $fx/browser/icons/mozicon128.png \
47 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
48 for size in 16 32 48; 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 # Allow user updates (save user's and our traffic)
56 chmod -R a+w $install$fx
58 # Desktop shortcut
59 cp $stuff/firefox-official.desktop $install/usr/share/applications
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 cp -a $install/* $fs
66 ln -s firefox-official $fs/usr/bin/browser-html5
67 }