diff --git a/pkgbuild/thunderbird-nightly/PKGBUILD b/pkgbuild/thunderbird-nightly/PKGBUILD new file mode 100644 index 0000000..f9ed610 --- /dev/null +++ b/pkgbuild/thunderbird-nightly/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Cedric Girard +# Contributor: Det +# Based on [extra]'s thunderbird + +pkgname=thunderbird-nightly +pkgver=15.0a1 +pkgrel=1 +pkgdesc="Standalone Mail/News reader - Nightly build" +arch=('i686' 'x86_64') +license=('MPL' 'GPL' 'LGPL') +url="http://www.mozilla.org/thunderbird" +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') +optdepends=('libcanberra: for sound support') +provides=("thunderbird=$pkgver") +install=$pkgname.install +source=($pkgname.desktop + vendor.js) +sha1sums=('9373c6b8e57692f62bac9f738351407ff27aa6f3' + '4243393daf5bd5a68644034001f512178cad09cc') + +package() { + FX_SRC="thunderbird-${pkgver}.en-US.linux-${CARCH}.tar.bz2" + FX_SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/${FX_SRC}" + + msg "Downloading..." + wget -N ${FX_SRC_URI} + 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" +} diff --git a/pkgbuild/thunderbird-nightly/thunderbird-nightly.desktop b/pkgbuild/thunderbird-nightly/thunderbird-nightly.desktop new file mode 100644 index 0000000..97b3ca9 --- /dev/null +++ b/pkgbuild/thunderbird-nightly/thunderbird-nightly.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Name=Thunderbird (Nightly) +Comment=Mail & News Reader (Nightly) +GenericName=Mail Client & News Reader (Nightly) +Exec=thunderbird-nightly %u +TryExec=thunderbird-nightly +Icon=thunderbird-nightly +Terminal=false +Type=Application +Categories=Network;Email; +MimeType=message/rfc822;x-scheme-handler/mailto; +StartupNotify=true \ No newline at end of file diff --git a/pkgbuild/thunderbird-nightly/thunderbird-nightly.install b/pkgbuild/thunderbird-nightly/thunderbird-nightly.install new file mode 100644 index 0000000..7c62260 --- /dev/null +++ b/pkgbuild/thunderbird-nightly/thunderbird-nightly.install @@ -0,0 +1,16 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + echo "" + echo "Note: the binary is called 'thunderbird-nightly'" + echo "" +} + +post_upgrade() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + post_upgrade +} \ No newline at end of file diff --git a/pkgbuild/thunderbird-nightly/vendor.js b/pkgbuild/thunderbird-nightly/vendor.js new file mode 100644 index 0000000..170b505 --- /dev/null +++ b/pkgbuild/thunderbird-nightly/vendor.js @@ -0,0 +1,9 @@ +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); + +// Disable default mailer checking. +pref("mail.shell.checkDefaultMail", false); + +// Don't disable our bundled extensions in the application directory +pref("extensions.autoDisableScopes", 11); +pref("extensions.shownSelectionUI", true);