# Maintainer: Det # Based on [extra]'s thunderbird pkgname=thunderbird-hg pkgver=57.0a1.r22045.8d0293462cd9 pkgrel=1 pkgdesc="Standalone mail and news reader from mozilla.org - Mercurial 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 mercurial clang llvm) optdepends=('hunspell: Spell checking' 'hyphen: Hyphenation' 'libcanberra: Sound support') options=(!emptydirs !makeflags) install=$pkgname.install source=(hg+http://hg.mozilla.org/comm-central $pkgname.desktop thunderbird-install-dir.patch fix-wifi-scanner.diff) sha512sums=('SKIP' '5d17bcbda0ca96133f7241a3fb371ba2863f3e67b12d770803e0bc7bb4b3254fc9dc6f78bd8310303abf9b2c62eb1321e63610eb9328c1b9a7b73fde671bc34a' '3eceeda61891cdfb639be1ef665bd09e857d2e2ada53a5060285a6fc5a894ad88dd271d5cb602db83a4bb747e303f8563562fe90ce3ef02cdfc5d817aa5ab2f4' '1bd2804bea1fe8c85b602f8c5f8777f4ba470c9e767ad284cb3d0287c6d6e1b126e760738d7c671f38933ee3ec6b8931186df8e978995b5109797ae86dfdd85a') _hgrepo="comm-central" # 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 $_hgrepo # Sync local copy msg2 "Syncing local copy..." python2 client.py checkout msg2 "thunderbird-install-dir.patch" patch -Np1 -i ../thunderbird-install-dir.patch 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 <