blob: fb71c0df5d40ebf601b3ebde4b7fd0ce938843a2 (
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: nss,autoconf-2.13,unzip,zip,libidl,gtk,gtk3,python,alsa-lib,xorg-libxt,yasm,mesa3d
5
6 name=thunderbird
7 version=52.1.1
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)
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 export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/$name"
17 export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
18 export CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
19
20 cat <<- EOF > .mozconfig
21 mk_add_options MOZ_MAKE_FLAGS="$MAKEFLAGS -s"
22 ac_add_options --enable-application=mail
23 ac_add_options --prefix=/usr
24 ac_add_options --enable-default-toolkit=cairo-gtk3
25 ac_add_options --with-system-jpeg
26 ac_add_options --with-system-zlib
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 --with-system-cairo
31 ac_add_options --enable-system-ffi
32 ac_add_options --enable-system-pixman
33 #breaks search:
34 #ac_add_options --enable-system-sqlite
35 ac_add_options --enable-alsa
36 ac_add_options --with-pthreads
37 ac_add_options --enable-official-branding
38 ac_add_options --with-distribution-id=nu.crux
39 ac_add_options --disable-tests
40 ac_add_options --disable-dbus
41 ac_add_options --disable-debug
42 ac_add_options --disable-updater
43 ac_add_options --disable-gnomeui
44 ac_add_options --disable-crashreporter
45 ac_add_options --disable-necko-wifi
46 ac_add_options --disable-pulseaudio
47 ac_add_options --disable-gconf
48 ac_add_options --enable-calendar
49 EOF
50 make -f client.mk build
51 make -f client.mk DESTDIR=$PKG install
52
53 mkdir -p $PKG/usr/share/pixmaps
54 ln -s /usr/lib/thunderbird/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/thunderbird_default48.png
55 install -D -m 0644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
56
57 find $PKG -iname '*README*' -delete
58 rm -r $PKG/usr/{include,lib/thunderbird-devel,share/idl}
59 }
|