blob: 7ef6c943c50d332a0ee6a9023dd3ce7602dc6c61 (
plain)
1 # Description: email client from the Mozilla project
2 # URL: http://www.mozillamessaging.com/en-US/thunderbird/
3 # Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
4 # Depends on: python,gtk,alsa-lib,xorg-libxt,libidl,nss,yasm,mesa3d,libjpeg-turbo
5
6 name=thunderbird
7 version=45.2.0
8 release=1
9 source=(http://ftp.mozilla.org/pub/thunderbird/releases/$version/source/$name-$version.source.tar.xz
10 $name.desktop thunderbird-install-dir.patch thunderbird-gcc6.patch)
11
12 build() {
13 cd $name-$version
14 sed -i '/^ftglyph.h/ i freetype/ftfntfmt.h' mozilla/config/system-headers
15 patch -p1 -i $SRC/thunderbird-install-dir.patch
16 patch -p1 -i $SRC/thunderbird-gcc6.patch
17 export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/$name"
18
19 cat <<- EOF > .mozconfig
20 mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS -s"
21 ac_add_options --prefix=/usr
22 ac_add_options --enable-application=mail
23 ac_add_options --with-system-jpeg
24 ac_add_options --with-system-zlib
25 ac_add_options --with-system-bz2
26 ac_add_options --with-system-mng
27 ac_add_options --with-system-png
28 ac_add_options --with-system-nspr
29 ac_add_options --with-system-nss
30 ac_add_options --enable-system-ffi
31 ac_add_options --enable-system-pixman
32 #ac_add_options --enable-system-sqlite
33 ac_add_options --enable-system-cairo
34 ac_add_options --with-pthreads
35 ac_add_options --enable-optimize="$CFLAGS"
36 ac_add_options --enable-official-branding
37 ac_add_options --enable-shared
38 ac_add_options --enable-single-profile
39 ac_add_options --enable-calendar
40 ac_add_options --enable-pie
41 ac_add_options --disable-gstreamer
42 ac_add_options --disable-tests
43 ac_add_options --disable-mochitest
44 ac_add_options --disable-dbus
45 ac_add_options --disable-debug
46 ac_add_options --disable-installer
47 ac_add_options --disable-updater
48 ac_add_options --disable-profilesharing
49 ac_add_options --disable-crashreporter
50 ac_add_options --disable-necko-wifi
51 ac_add_options --disable-libnotify
52 ac_add_options --disable-pulseaudio
53 ac_add_options --with-distribution-id=nu.crux
54 ac_add_options --disable-gconf
55 ac_add_options --disable-elf-hack
56 EOF
57 make -f client.mk build
58 make -f client.mk DESTDIR=$PKG install
59
60 mkdir -p $PKG/usr/share/pixmaps
61 ln -s /usr/lib/thunderbird/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/thunderbird_default48.png
62 install -D -m 0644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
63
64 find $PKG -iname '*README*' -delete
65 rm -r $PKG/usr/{include,lib/thunderbird-devel,share/idl}
66 }
|