1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Based on [extra]'s thunderbird
4 pkgname=thunderbird-nightly
7 pkgdesc="Standalone Mail/News reader - Nightly build"
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
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')
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"
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"