summaryrefslogtreecommitdiffstats
path: root/thunderbird3/PKGBUILD
blob: 0301f91d9af996e602d67b35ef138c27e46d4dd6 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Contibutor: Andreas Schönfelder <passtschu at freenet dot de>

pkgname=thunderbird3
pkgver=3.0rc1
_basever=${pkgver/rc*/}
pkgrel=3
pkgdesc="Standalone Mail/News reader (installs besides thunderbird2)"
arch=('i686' 'x86_64')
license=('MPL' 'GPL')
url="http://www.mozilla.org/projects/thunderbird"
depends=('gtk2>=2.14.7' 'gcc-libs>=4.3.3' 'libidl2' 'mozilla-common' 'libxt' 'shared-mime-info')
makedepends=('zip' 'pkgconfig' 'imagemagick' 'libgnomeui' 'dbus' 'python')
options=('!ccache' '!distcc')
source=(ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${pkgver}/source/thunderbird-${pkgver}.source.tar.bz2
        mozconfig
        thunderbird3.desktop
        default_locale.patch)
md5sums=('49028d9de4c4e167d469bbd4c6665b8c'
         '8a3b273574d76f6cb3a255afce84e00c'
         'da268f4dbf6fbb8efa13221f39d9fb32'
         '25b6fe16ac24cd5c852213e5c1adb272')

build() {
  cd "${srcdir}"
  cp "${srcdir}/mozconfig" comm-1.9.1/.mozconfig
  cd comm-1.9.1/

  patch -Np1 -i "${srcdir}/default_locale.patch" || return 1

  unset CFLAGS
  unset CXXFLAGS
  unset LDFLAGS

  if [ "${CARCH}" = "x86_64" ]; then
    echo "ac_cv_visibility_pragma=no" >> .mozconfig
  fi

  export MOZ_PROJECT=mail

  make -f client.mk build || return 1
  make -j1 DESTDIR="${pkgdir}" -C objdir-tb install|| return 1

  rm -rf "${pkgdir}/usr/bin/defaults"

  mv "${pkgdir}/usr/bin/thunderbird"{,3}
  install -m755 -d "${pkgdir}/usr/share/applications"
  install -m755 -d "${pkgdir}/usr/share/pixmaps"
  install -m644 "${srcdir}/comm-1.9.1/other-licenses/branding/thunderbird/mailicon48.png" "${pkgdir}/usr/share/pixmaps/thunderbird3.png"

  #Is this a bug??? What happened to default.xpm?!
  convert "${srcdir}/comm-1.9.1/other-licenses/branding/thunderbird/"{mailicon48.png,default.xpm}

  install -m644 "${srcdir}/comm-1.9.1/other-licenses/branding/thunderbird/default.xpm" \
    "${pkgdir}/usr/lib/thunderbird-${_basever}/icons/" || return 1
  install -m644 "${srcdir}/thunderbird3.desktop" "${pkgdir}/usr/share/applications/"

  rm -f ${pkgdir}/usr/lib/pkgconfig/thunderbird-ns{s,pr}.pc
}