1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Description: logiciel de messagerie e-mail
# URL: http://www.mozilla-europe.org/fr/products/thunderbird/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: alsa-lib,gtk,libidl,nss,xorg-libxt,shared-mime-info,dbus-glib,sqlite3,desktop-file-utils,libnotify,libevent,hunspell,gconf
# Run on: alsa-lib,gtk,libidl,nss,xorg-libxt,shared-mime-info,dbus-glib,sqlite3,desktop-file-utils,libnotify,libevent,hunspell,gconf
name=thunderbird
version=5.0
release=2
source=( ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$version/source/thunderbird-$version.source.tar.bz2 \
fr.xpi mozconfig thunderbird-3.0-lang.patch thunderbird-appversion.patch thunderbird.desktop thunderbird.png)
build() {
cd $SRC/comm-miramar
patch -Np1 -i ../thunderbird-3.0-lang.patch
patch -Np1 -i ../thunderbird-appversion.patch
cp ../mozconfig .mozconfig
export CXXFLAGS="-fpermissive"
export LDFLAGS="-Wl,-rpath,/usr/lib/thunderbird-5.0 -Wl,-O1,--sort-common,--hash-style=gnu,--as-needed"
export PYTHON="/usr/bin/python2"
make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS"
make -j1 -f client.mk DESTDIR=$PKG install
for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
install -Dm644 other-licenses/branding/thunderbird/mailicon${i/x*/}.png \
$PKG/usr/share/icons/hicolor/$i/apps/thunderbird.png
done
install -Dm644 $SRC/thunderbird.desktop \
$PKG/usr/share/applications/thunderbird.desktop
rm -rf $PKG/usr/lib/thunderbird-5.0/dictionaries
ln -sf /usr/share/myspell/dicts $PKG/usr/lib/thunderbird-5.0/dictionaries
rm -rf $PKG/usr/lib/thunderbird-devel-5.0/
cd $SRC
mv fr.xpi thunderbird-i18n-$version-fr.xpi
install -Dm644 thunderbird-i18n-$version-fr.xpi $PKG/usr/lib/thunderbird-$version/extensions/langpack-fr@thunderbird.mozilla.org.xpi
}
|