# Contibutor: Andreas Schönfelder 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 }