updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / thunderbird-nightly / PKGBUILD
blob6cb44aa90f0358994b705cb8f9ccefda6f58ca2e
1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s thunderbird
4 pkgname=thunderbird-nightly
5 pkgver=12.0a1
6 pkgrel=1
7 pkgdesc="Standalone Mail/News reader - Nightly build"
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 install=$pkgname.install
15 source=(http://ftp.mozilla.org/pub/thunderbird/nightly/latest-comm-central/thunderbird-$pkgver.en-US.linux-i686.tar.bz2
16         $pkgname.desktop)
17 [ "$CARCH" = 'x86_64' ] && source[0]="http://ftp.mozilla.org/pub/thunderbird/nightly/latest-comm-central/thunderbird-$pkgver.en-US.linux-x86_64.tar.bz2"
18 sha512sums=(`curl -s ${source/ta*}checksums | grep bz | cut -d " " -f1`
19             'c75c6d5b6f48e25a3c2ea666ae9b42f4e3372de9aaf6cd4270f3356c7046f9f19caa1651e5d779b95d790edfd4dd39dc3f4261361d882a62166dc9e91e9e8cb1')
21 package() {
22   mkdir -p "$pkgdir"/{usr/bin,opt}
23   cp -a thunderbird "$pkgdir/opt/$pkgname"
24   ln -s /opt/$pkgname/thunderbird "$pkgdir/usr/bin/$pkgname"
25   for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
26       install -Dm644 thunderbird/chrome/icons/default/default${i/x*/}.png "$pkgdir/usr/share/icons/hicolor/${i}/apps/$pkgname.png"
27   done
28   install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
29   rm -rf "$pkgdir/opt/$pkgname/dictionaries"
30   ln -sf /usr/share/hunspell "$pkgdir/opt/$pkgname/dictionaries"