wok-6.x view thunderbird-bin/receipt @ rev 24304
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 11:01:52 2022 +0000 (2022-01-17) |
parents | da134f47b369 |
children | d765616e1f3d |
line source
1 # SlitTaz package receipt.
3 PACKAGE="thunderbird-bin"
4 VERSION="68.9.0"
5 CATEGORY="network"
6 SHORT_DESC="Mozilla's Thunderbird email application."
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="MPL"
9 TARBALL="$SOURCE-$VERSION.tar.bz2"
10 SOURCE="thunderbird"
11 WEB_SITE="http://www.mozilla.org/"
12 WGET_URL="https://ftp.mozilla.org/pub/thunderbird/releases/$VERSION/linux-i686/en-US/$TARBALL"
14 DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt"
15 HOST_ARCH="i486"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://ftp.mozilla.org/pub/thunderbird/releases/ 2>/dev/null | \
21 sed '/[0-9]*\.[0-9]*\./!d;s|.*">||;s|/.*||' | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Installation path
28 fx='/opt/mozilla/thunderbird-bin'
30 mkdir -p \
31 $install$fx \
32 $install/usr/bin \
33 $install/usr/share/applications \
34 $install/usr/share/pixmaps
36 # Copy everything
37 cp -a $src/* $install$fx
39 # Executable
40 ln -s $fx/thunderbird $install/usr/bin/thunderbird-bin
42 # Icon
43 cp -a $stuff/thunderbird-bin.png \
44 $install/usr/share/pixmaps
46 # Allow user updates
47 chmod -R a+w $install$fx
49 # Desktop shortcut
50 cp $stuff/thunderbird-bin.desktop \
51 $install/usr/share/applications
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 cp -a $install/* $fs
58 }