updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / thunderbird-beta-bin / PKGBUILD
blob67c73ba34715d9b80bf1e1d961913afeee41f78f
1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s thunderbird
4 pkgname=thunderbird-beta-bin
5 pkgver=10.0b3
6 pkgrel=1
7 pkgdesc="Standalone Mail/News reader - Bleeding edge binary version"
8 arch=('i686' 'x86_64')
9 license=('MPL' 'GPL' 'LGPL')
10 url="http://www.mozilla.org/thunderbird"
11 depends=('alsa-lib' 'cairo' 'dbus-glib' 'desktop-file-utils' 'fontconfig' 'freetype2' 'gtk2' 'hicolor-icon-theme' 'hunspell' 'libevent' 'libjpeg' 'libmng' 'libpng' 'libvpx' 'libxt' 'mozilla-common' 'nspr' 'nss' 'shared-mime-info' 'sqlite3' 'startup-notification')
12 optdepends=('libcanberra: for sound support')
13 provides=("thunderbird=$pkgver")
14 conflicts=('thunderbird-beta')
15 install=$pkgname.install
16 # In case releases.mozilla.org is not responding or the file(s) aren't yet uploaded there:
17 # source=(http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/linux-i686/en-US/thunderbird-$pkgver.tar.bz2
18 source=(ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/linux-i686/en-US/thunderbird-$pkgver.tar.bz2
19         $pkgname.desktop)
20 [ "$CARCH" = 'x86_64' ] && source[0]="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/linux-x86_64/en-US/thunderbird-$pkgver.tar.bz2"
21 md5sums=(`curl -s ${source/li*}/MD5SUMS | grep en-US | grep "$CARCH" | grep bz | cut -d " " -f1`
22          'f8a9b91202e8c85ad7b8f23fb82a4d7b')
24 package() {
25   install -d "$pkgdir"/{usr/bin,opt}
26   cp -a thunderbird "$pkgdir/opt/$pkgname"
27   ln -s /opt/$pkgname/thunderbird "$pkgdir/usr/bin/thunderbird-beta"
28   for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
29       install -Dm644 thunderbird/chrome/icons/default/default${i/x*/}.png "$pkgdir/usr/share/icons/hicolor/$i/apps/thunderbird-beta.png"
30   done
31   install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
32   rm -rf "$pkgdir/opt/$pkgname/dictionaries"
33   ln -sf /usr/share/hunspell "$pkgdir/opt/$pkgname/dictionaries"