summaryrefslogtreecommitdiffstats
path: root/thunderbird/Pkgfile
blob: cb5b62542787378ecb773922f57ccc7258652d30 (plain)
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
44
# 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: yasm,alsa-lib,gtk,libidl,nss,xorg-libxt,shared-mime-info,dbus-glib,desktop-file-utils,libnotify,libevent,hunspell,gconf,mesa3d
# Run on: alsa-lib,gtk,libidl,nss,xorg-libxt,shared-mime-info,dbus-glib,desktop-file-utils,libnotify,libevent,hunspell,gconf,mesa3d


name=thunderbird
version=12.0
release=1

source=(ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$version/source/$name-$version.source.tar.bz2 \
	mozconfig thunderbird-3.0-lang.patch thunderbird.desktop thunderbird.png)

build() {
	wget ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$version/linux-`uname -m`/xpi/fr.xpi
	cd $SRC/comm-release
	patch -Np1 -i ../thunderbird-3.0-lang.patch
	cp ../mozconfig .mozconfig

	export CXXFLAGS="-fpermissive"
  	export LDFLAGS="-Wl,-rpath,/usr/lib/thunderbird-$version -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-$version/dictionaries
  	ln -sf /usr/share/myspell/dicts $PKG/usr/lib/thunderbird-$version/dictionaries
	rm -rf $PKG/usr/lib/thunderbird-devel-$version/
	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
	rm -r $PKG/usr/include
}