# Maintainer: Det # Based on [extra]'s thunderbird: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/thunderbird pkgname=thunderbird-beta pkgver=59.0b1 _major=${pkgver/[br]*} _build=${pkgver/*rc} pkgrel=1 pkgdesc="Standalone mail and news reader from mozilla.org - Bleeding edge version" arch=(x86_64) license=(MPL GPL LGPL) url="https://www.mozilla.org/thunderbird/" depends=(gtk3 gtk2 mozilla-common libxt startup-notification mime-types dbus-glib alsa-lib ffmpeg nss sqlite ttf-font icu libvpx) makedepends=(unzip zip diffutils python2 yasm mesa imake gconf libpulse inetutils xorg-server-xvfb autoconf2.13 cargo clang llvm) optdepends=('hunspell: Spell checking' 'hyphen: Hyphenation' 'libcanberra: Sound support') options=(!emptydirs !makeflags) install=$pkgname.install source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.xz $pkgname.desktop thunderbird-install-dir.patch no-crmf.diff fix-wifi-scanner.diff) sha512sums=('384d78346413c66b02573a6138bde223b6388a306ba535eaf5498867a4dd7bb44b73dda4e7811b728202df0283813bc3365317007a170696bdba0703beb83215' 'e5649ddee3ca9cfdcf56652e9c8e6160d52c69d1439f9135b0c0d436ce61a25f17758afc0dd6cac3434c26234c584828eb07fdf9604797f7dd3f617ec194b79a' '8100fd3ea37d998905498d41c8504bfdd6d86766542d6b93107c92382a7525da7f75a83f8ff1e15ad95039d51da2add7e6b18af76d45516a41cdfd1e9f98f262' '951667941520e66e7b6aad55619ec2b38364da58c5cf8a71775a3032921cfc0a8e5c7ba14e0df35588175f94a6b4785566d39177ff536ab9cefcbd19a03dc065' '1bd2804bea1fe8c85b602f8c5f8777f4ba470c9e767ad284cb3d0287c6d6e1b126e760738d7c671f38933ee3ec6b8931186df8e978995b5109797ae86dfdd85a') # RC if [[ $_build = ? ]]; then source[0]="https://ftp.mozilla.org/pub/thunderbird/candidates/$_major-candidates/build$_build/source/thunderbird-$_major.source.tar.xz" fi # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) # Note: These are for Arch Linux use ONLY. For your own distribution, please # get your own set of keys. Feel free to contact foutrelis@archlinux.org for # more information. _google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM # Mozilla API keys (see https://location.services.mozilla.com/api) # Note: These are for Arch Linux use ONLY. For your own distribution, please # get your own set of keys. Feel free to contact heftig@archlinux.org for # more information. _mozilla_api_key=16674381-f021-49de-8622-3021c5942aff prepare() { # Link Python2 mkdir -p path ln -sf /usr/bin/python2 path/python cd thunderbird-$pkgver msg2 "thunderbird-install-dir.patch" patch -Np1 -i ../thunderbird-install-dir.patch msg2 "no-crmf.diff: https://bugzilla.mozilla.org/show_bug.cgi?id=1371991" patch -Np1 -i ../no-crmf.diff msg2 "fix-wifi-scanner.diff: https://bugzilla.mozilla.org/show_bug.cgi?id=1314968" patch -d mozilla -Np1 < ../fix-wifi-scanner.diff # API keys echo -n "$_google_api_key" >google-api-key echo -n "$_mozilla_api_key" >mozilla-api-key # mozconfig cat >.mozconfig <