summaryrefslogtreecommitdiffstats
path: root/thunderbird3/PKGBUILD
blob: 4e1a659929734e0e227f0f28da24d2f03b45a238 (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
# Contibutor: Andreas Schönfelder <passtschu at freenet dot de>

pkgname=thunderbird3
pkgver=3.0b4
pkgrel=5
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=('0f7c7cdfebd8948b7e3fe835773b072d'
         '8a3b273574d76f6cb3a255afce84e00c'
         'da268f4dbf6fbb8efa13221f39d9fb32'
         '39fe15f99264dc1b6776059de87dfa88')

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

  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-central/other-licenses/branding/thunderbird/mailicon48.png" "${pkgdir}/usr/share/pixmaps/thunderbird3.png"

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

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

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