# Maintainer: Levente Polyak # Contributor: Jan Alexander Steffens (heftig) # Contributor: Ionut Biru # Contributor: Alexander Baldeck # Contributor: Dale Blount # Contributor: Anders Bostrom # ALARM: Kevin Mihelich # - mozconfig changes for ARM # - revert change for clang that breaks gcc build on ARM buildarch=12 highmem=1 pkgname=thunderbird pkgver=60.7.1 pkgrel=1 pkgdesc='Standalone mail and news reader from mozilla.org' url='https://www.mozilla.org/thunderbird/' arch=(x86_64) license=(MPL GPL LGPL) depends=(gtk3 mozilla-common libxt startup-notification mime-types dbus-glib alsa-lib nss hunspell sqlite ttf-font icu) # libvpx makedepends=(unzip zip diffutils python2 yasm mesa imake libpulse inetutils xorg-server-xvfb autoconf2.13 rust clang llvm gtk2) optdepends=('libcanberra: sound support') options=(!emptydirs !makeflags) source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.xz rust-1.33.patch $pkgname.desktop Bug-1238661---fix-mozillaSignalTrampoline-to-work-.patch) sha256sums=('f638cb12415af3a34134fa6c60ba082752c949461ca92e529205a05ac6486453' '2b0244a9f7a30f28bcc12055f171e5506c7e3b929d85c3b3514b7e4e4c251784' '36a655ce3987159990d46a13d9955305a72a8a737e6af983eb170c4f652eb39a') # 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() { cd $pkgname-$pkgver # https://bugzilla.mozilla.org/show_bug.cgi?id=1539901 (Patch from Fedora) patch -Np1 -i ../rust-1.33.patch echo -n "$_google_api_key" >google-api-key echo -n "$_mozilla_api_key" >mozilla-api-key cat >.mozconfig <> .mozconfig echo 'ac_add_options --enable-optimize="-g -O2 -fno-schedule-insns"' >> .mozconfig elif [[ $CARCH == "aarch64" ]]; then echo 'ac_add_options --enable-optimize="-O2"' >> .mozconfig fi patch -p1 -i ../Bug-1238661---fix-mozillaSignalTrampoline-to-work-.patch LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads" } build() { cd $pkgname-$pkgver ./mach configure ./mach build ./mach buildsymbols } package() { cd $pkgname-$pkgver DESTDIR="$pkgdir" ./mach install _vendorjs="$pkgdir/usr/lib/$pkgname/defaults/preferences/vendor.js" install -Dm644 /dev/stdin "$_vendorjs" <