updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / thunderbird-branded-bin / PKGBUILD
blob0530877c38adbed77424cf8e53cca23d78c6d4bf
1 # Contributor: Det <nimetonmaili at gmail a-dot com>
2 # Contributor: Aaron Hurt <ahurt@anbcs.com>
4 pkgname=thunderbird-branded-bin
5 pkgver=3.1.9
6 pkgrel=1
7 pkgdesc="Standalone Mail/News reader - Branded binary version"
8 arch=('i686')
9 url="http://www.mozilla.org/projects/thunderbird"
10 license=('MPL' 'GPL2' 'LGPL2.1')
11 depends=('gtk2' 'gcc-libs' 'mozilla-common' 'nss' 'libxt' 'shared-mime-info' 'alsa-lib' 'dbus-glib' 'hunspell' 'sqlite3>=3.7.4')
12 optdepends=('libcanberra: for sound support')
13 provides=("thunderbird=${pkgver}")
14 conflicts=(thunderbird)
15 install=${pkgname}.install
16 source=(ftp://ftp.mozilla.org/pub/thunderbird/releases/${pkgver}/linux-i686/en-US/thunderbird-${pkgver}.tar.bz2
17         thunderbird.desktop)
18 md5sums=(`wget ${source/li*}/MD5SUMS -qO - | grep en-US | grep bz | cut -d " " -f1`
19          'da7d555a512cdd60a49dd495b5e09bfb')
21 package() {
22   # fix moz lib path
23   sh "sed -i 's|/usr/local/lib/thunderbird-${pkgver}|/usr/lib/thunderbird|' thunderbird/thunderbird"
25   # create dirs
26   install -dm755 "${pkgdir}"/usr/{bin,lib/thunderbird,share/{applications,pixmaps}}
28   # install the moz bin to bin path
29   install -m755 thunderbird/thunderbird "${pkgdir}/usr/bin"
31   # copy over the moz package content
32   cp -a thunderbird/* "${pkgdir}/usr/lib/thunderbird"
34   # install icon and desktop files
35   install -m644 thunderbird/chrome/icons/default/default48.png "${pkgdir}/usr/share/pixmaps/thunderbird.png"
36   install -m644 thunderbird.desktop "${pkgdir}/usr/share/applications"