2012-04-26 12:38:34 +02:00
|
|
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
|
|
|
# Contributor: Det <nimetonmaili at gmail a-dot com>
|
|
|
|
# Based on [extra]'s thunderbird
|
|
|
|
|
|
|
|
pkgname=thunderbird-nightly
|
2014-10-14 16:27:03 +02:00
|
|
|
pkgver=36.0a1.20141014
|
|
|
|
_version=36.0a1
|
2012-04-26 12:38:34 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Standalone Mail/News reader - Nightly build"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('MPL' 'GPL' 'LGPL')
|
|
|
|
url="http://www.mozilla.org/thunderbird"
|
2012-06-18 17:24:33 +02:00
|
|
|
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' 'sqlite' 'startup-notification')
|
2012-04-26 12:38:34 +02:00
|
|
|
optdepends=('libcanberra: for sound support')
|
2014-10-14 16:27:03 +02:00
|
|
|
provides=("thunderbird=$_version")
|
2012-04-26 12:38:34 +02:00
|
|
|
install=$pkgname.install
|
|
|
|
source=($pkgname.desktop
|
|
|
|
vendor.js)
|
|
|
|
sha1sums=('9373c6b8e57692f62bac9f738351407ff27aa6f3'
|
|
|
|
'4243393daf5bd5a68644034001f512178cad09cc')
|
|
|
|
|
2014-10-14 16:27:03 +02:00
|
|
|
pkgver(){
|
|
|
|
FX_SRC="thunderbird-${_version}.en-US.linux-${CARCH}.txt"
|
|
|
|
FX_SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/${FX_SRC}"
|
|
|
|
msg "Getting last nightly date..."
|
|
|
|
curl -ORz ${FX_SRC} ${FX_SRC_URI}
|
|
|
|
echo "${_version}.$(head -n1 ${FX_SRC} | cut -c -8)"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-26 12:38:34 +02:00
|
|
|
package() {
|
2014-10-14 16:27:03 +02:00
|
|
|
FX_SRC="thunderbird-${_version}.en-US.linux-${CARCH}.tar.bz2"
|
2012-04-26 12:38:34 +02:00
|
|
|
FX_SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/${FX_SRC}"
|
|
|
|
|
|
|
|
msg "Downloading..."
|
2013-05-14 14:12:54 +02:00
|
|
|
curl -ORz ${FX_SRC} ${FX_SRC_URI}
|
2012-04-26 12:38:34 +02:00
|
|
|
msg "Extracting..."
|
|
|
|
bsdtar -x -f ${FX_SRC}
|
|
|
|
msg "Packaging..."
|
|
|
|
|
|
|
|
install -d "$pkgdir"/{usr/bin,opt}
|
|
|
|
cp -a thunderbird "$pkgdir/opt/$pkgname-$pkgver"
|
|
|
|
cp vendor.js "$pkgdir/opt/$pkgname-$pkgver/defaults/pref/"
|
|
|
|
ln -s /opt/$pkgname-$pkgver/thunderbird "$pkgdir/usr/bin/$pkgname"
|
|
|
|
for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
|
|
|
|
install -Dm644 thunderbird/chrome/icons/default/default${i/x*/}.png "$pkgdir/usr/share/icons/hicolor/$i/apps/$pkgname.png"
|
|
|
|
done
|
|
|
|
install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
|
|
|
|
rm -rf "$pkgdir/opt/$pkgname-$pkgver/dictionaries/"
|
|
|
|
ln -sf /usr/share/hunspell/ "$pkgdir/opt/$pkgname-$pkgver/dictionaries"
|
|
|
|
}
|