2018-12-01 22:56:06 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
2017-10-13 01:04:57 +00:00
|
|
|
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
2016-04-19 18:51:04 +00:00
|
|
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
2013-06-25 16:41:43 +00:00
|
|
|
# Contributor: Alexander Baldeck <alexander@archlinux.org>
|
|
|
|
# Contributor: Dale Blount <dale@archlinux.org>
|
|
|
|
# Contributor: Anders Bostrom <anders.bostrom@home.se>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - mozconfig changes for ARM
|
2018-08-10 12:27:27 +00:00
|
|
|
# - revert change for clang that breaks gcc build on ARM
|
2013-06-25 16:41:43 +00:00
|
|
|
|
2017-02-22 03:19:46 +00:00
|
|
|
buildarch=12
|
2015-12-16 03:09:15 +00:00
|
|
|
highmem=1
|
2013-06-25 16:41:43 +00:00
|
|
|
|
|
|
|
pkgname=thunderbird
|
2020-03-16 00:07:46 +00:00
|
|
|
pkgver=68.6.0
|
2019-12-06 00:38:49 +00:00
|
|
|
pkgrel=1
|
2018-12-01 22:56:06 +00:00
|
|
|
pkgdesc='Standalone mail and news reader from mozilla.org'
|
|
|
|
url='https://www.mozilla.org/thunderbird/'
|
2017-11-17 23:32:39 +00:00
|
|
|
arch=(x86_64)
|
2017-02-22 03:19:46 +00:00
|
|
|
license=(MPL GPL LGPL)
|
2019-06-13 23:32:04 +00:00
|
|
|
depends=(gtk3 mozilla-common libxt startup-notification mime-types dbus-glib alsa-lib
|
2019-03-07 00:30:30 +00:00
|
|
|
nss hunspell sqlite ttf-font icu) # libvpx
|
2019-09-04 12:40:20 +00:00
|
|
|
makedepends=(unzip zip diffutils python python2 yasm nasm mesa imake libpulse inetutils xorg-server-xvfb
|
2020-01-04 15:10:23 +00:00
|
|
|
autoconf2.13 rust clang llvm gtk2 cbindgen nodejs)
|
2017-04-06 00:31:29 +00:00
|
|
|
optdepends=('libcanberra: sound support')
|
2017-02-22 03:19:46 +00:00
|
|
|
options=(!emptydirs !makeflags)
|
2019-07-14 15:26:36 +00:00
|
|
|
source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.xz{,.asc}
|
2018-08-10 12:27:27 +00:00
|
|
|
$pkgname.desktop
|
2019-12-14 00:12:01 +00:00
|
|
|
arm.patch
|
2019-02-08 01:28:02 +00:00
|
|
|
Bug-1238661---fix-mozillaSignalTrampoline-to-work-.patch)
|
2020-03-16 00:07:46 +00:00
|
|
|
sha512sums=('3502cc42b594eebf3511219ae8e7fb8a13594534abfe7a40ec32e5a3f60343cfab7c652b161a5f33af46bd5e6f096e3abd4a407c8b307ce4693089b471a42c3e'
|
2019-07-14 15:26:36 +00:00
|
|
|
'SKIP'
|
2020-03-16 00:07:46 +00:00
|
|
|
'a0061fcb2a7f66061e336a8d95948592f56f4752e56467f14ba63846720ebf845cce7511d1a2637e3b80d5a1ffdaa2fb783fa37195103425ef65222d45372012'
|
|
|
|
'c25883c4860e511a99d9fbfba5b824145c0862729101721605725f609ca2a41848b741dd100eff390f57031dc5f14af3ea30133de30f75cb20197c420ae20972'
|
|
|
|
'8ca4f72f1fc0a7fc128f05112d8f77be5350826010069ee3b787989131f02b82d014a4781e97ebe5694852c4bb5e87bb5313e562cfb7cb2afb6f904124027e13')
|
2019-07-14 15:26:36 +00:00
|
|
|
validpgpkeys=(14F26682D0916CDD81E37B6D61B7B526D98F0353) # Mozilla Software Releases <release@mozilla.com>
|
2016-04-19 18:51:04 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2013-06-25 16:41:43 +00:00
|
|
|
prepare() {
|
2017-02-22 03:19:46 +00:00
|
|
|
cd $pkgname-$pkgver
|
2017-10-13 01:04:57 +00:00
|
|
|
|
2016-04-19 18:51:04 +00:00
|
|
|
echo -n "$_google_api_key" >google-api-key
|
|
|
|
echo -n "$_mozilla_api_key" >mozilla-api-key
|
2017-02-22 03:19:46 +00:00
|
|
|
|
|
|
|
cat >.mozconfig <<END
|
2018-08-08 19:33:31 +00:00
|
|
|
ac_add_options --enable-application=comm/mail
|
2017-04-09 20:25:29 +00:00
|
|
|
ac_add_options --enable-calendar
|
2017-02-22 03:19:46 +00:00
|
|
|
|
|
|
|
ac_add_options --prefix=/usr
|
|
|
|
ac_add_options --enable-release
|
2018-08-10 12:27:27 +00:00
|
|
|
#ac_add_options --enable-linker=gold
|
|
|
|
#ac_add_options --enable-hardening
|
|
|
|
#ac_add_options --enable-optimize
|
2019-04-06 05:19:32 +00:00
|
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1521249
|
|
|
|
#ac_add_options --enable-rust-simd
|
2019-06-13 23:32:04 +00:00
|
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1423822
|
2019-06-14 00:25:03 +00:00
|
|
|
#ac_add_options --disable-elf-hack
|
2017-02-22 03:19:46 +00:00
|
|
|
|
|
|
|
# Branding
|
|
|
|
ac_add_options --enable-official-branding
|
2017-04-06 00:31:29 +00:00
|
|
|
ac_add_options --enable-update-channel=release
|
|
|
|
ac_add_options --with-distribution-id=org.archlinux
|
2019-09-13 02:57:48 +00:00
|
|
|
export BUILD_OFFICIAL=1
|
|
|
|
export MOZILLA_OFFICIAL=1
|
|
|
|
mk_add_options BUILD_OFFICIAL=1
|
|
|
|
mk_add_options MOZILLA_OFFICIAL=1
|
2017-02-22 03:19:46 +00:00
|
|
|
|
|
|
|
# Keys
|
2019-04-06 05:19:32 +00:00
|
|
|
ac_add_options --with-google-location-service-api-keyfile=${PWD@Q}/google-api-key
|
|
|
|
ac_add_options --with-google-safebrowsing-api-keyfile=${PWD@Q}/google-api-key
|
2017-02-22 03:19:46 +00:00
|
|
|
ac_add_options --with-mozilla-api-keyfile=${PWD@Q}/mozilla-api-key
|
|
|
|
|
2018-08-10 12:27:27 +00:00
|
|
|
# ALARM
|
|
|
|
ac_add_options --disable-webrtc
|
|
|
|
|
2017-02-22 03:19:46 +00:00
|
|
|
# System libraries
|
|
|
|
ac_add_options --with-system-zlib
|
|
|
|
ac_add_options --with-system-bz2
|
2018-02-01 19:36:46 +00:00
|
|
|
ac_add_options --with-system-icu
|
|
|
|
ac_add_options --with-system-jpeg
|
2019-03-07 00:30:30 +00:00
|
|
|
# ac_add_options --with-system-libvpx
|
2018-02-01 19:36:46 +00:00
|
|
|
ac_add_options --with-system-nspr
|
|
|
|
ac_add_options --with-system-nss
|
2017-02-22 03:19:46 +00:00
|
|
|
ac_add_options --enable-system-sqlite
|
|
|
|
ac_add_options --enable-system-ffi
|
|
|
|
|
|
|
|
# Features
|
2017-10-13 01:04:57 +00:00
|
|
|
ac_add_options --enable-alsa
|
|
|
|
ac_add_options --disable-jack
|
2017-02-22 03:19:46 +00:00
|
|
|
ac_add_options --enable-startup-notification
|
|
|
|
ac_add_options --disable-crashreporter
|
|
|
|
ac_add_options --disable-updater
|
2019-06-13 23:32:04 +00:00
|
|
|
ac_add_options --disable-gconf
|
2017-02-22 03:19:46 +00:00
|
|
|
END
|
2018-08-10 12:27:27 +00:00
|
|
|
|
|
|
|
if [[ $CARCH == "armv7h" ]]; then
|
2019-06-14 00:25:03 +00:00
|
|
|
echo "ac_add_options --disable-elf-hack" >> .mozconfig
|
2019-12-14 00:12:01 +00:00
|
|
|
MAKEFLAGS="-j2"
|
2018-08-10 12:27:27 +00:00
|
|
|
fi
|
|
|
|
|
2019-12-14 00:12:01 +00:00
|
|
|
echo 'ac_add_options --enable-optimize="-g0 -O2"' >> .mozconfig
|
|
|
|
echo "mk_add_options MOZ_MAKE_FLAGS=\"${MAKEFLAGS}\"" >> .mozconfig
|
|
|
|
|
|
|
|
export MOZ_DEBUG_FLAGS=" "
|
|
|
|
export CFLAGS+=" -g0"
|
|
|
|
export CXXFLAGS+=" -g0"
|
|
|
|
export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
|
|
|
export RUSTFLAGS="-Cdebuginfo=0"
|
|
|
|
|
|
|
|
patch -p1 -i ../arm.patch
|
2019-02-08 01:28:02 +00:00
|
|
|
patch -p1 -i ../Bug-1238661---fix-mozillaSignalTrampoline-to-work-.patch
|
2013-06-25 16:41:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2016-04-19 18:51:04 +00:00
|
|
|
cd $pkgname-$pkgver
|
2018-08-08 19:33:31 +00:00
|
|
|
./mach configure
|
|
|
|
./mach build
|
|
|
|
./mach buildsymbols
|
2013-06-25 16:41:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2016-04-19 18:51:04 +00:00
|
|
|
cd $pkgname-$pkgver
|
2018-08-08 19:33:31 +00:00
|
|
|
DESTDIR="$pkgdir" ./mach install
|
2013-06-25 16:41:43 +00:00
|
|
|
|
2017-06-16 01:16:37 +00:00
|
|
|
_vendorjs="$pkgdir/usr/lib/$pkgname/defaults/preferences/vendor.js"
|
2017-02-22 03:19:46 +00:00
|
|
|
install -Dm644 /dev/stdin "$_vendorjs" <<END
|
|
|
|
// Use LANG environment variable to choose locale
|
2018-08-10 12:27:27 +00:00
|
|
|
pref("intl.locale.requested", "");
|
|
|
|
|
|
|
|
// Use system-provided dictionaries
|
|
|
|
pref("spellchecker.dictionary_path", "/usr/share/hunspell");
|
2017-02-22 03:19:46 +00:00
|
|
|
|
|
|
|
// 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);
|
2017-04-06 00:31:29 +00:00
|
|
|
END
|
|
|
|
|
2017-06-16 01:16:37 +00:00
|
|
|
_distini="$pkgdir/usr/lib/$pkgname/distribution/distribution.ini"
|
2017-04-06 00:31:29 +00:00
|
|
|
install -Dm644 /dev/stdin "$_distini" <<END
|
|
|
|
[Global]
|
|
|
|
id=archlinux
|
|
|
|
version=1.0
|
|
|
|
about=Mozilla Thunderbird for Arch Linux
|
|
|
|
|
|
|
|
[Preferences]
|
|
|
|
app.distributor=archlinux
|
|
|
|
app.distributor.channel=$pkgname
|
|
|
|
app.partner.archlinux=archlinux
|
2017-02-22 03:19:46 +00:00
|
|
|
END
|
2013-06-25 16:41:43 +00:00
|
|
|
|
2018-08-10 12:27:27 +00:00
|
|
|
for i in 16 22 24 32 48 64 128 256; do
|
2018-08-08 19:33:31 +00:00
|
|
|
install -Dm644 comm/mail/branding/thunderbird/default${i}.png \
|
2017-06-16 01:16:37 +00:00
|
|
|
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png"
|
2013-06-25 16:41:43 +00:00
|
|
|
done
|
2018-08-10 12:27:27 +00:00
|
|
|
install -Dm644 comm/mail/branding/thunderbird/TB-symbolic.svg \
|
|
|
|
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/thunderbird-symbolic.svg"
|
2013-06-25 16:41:43 +00:00
|
|
|
|
2017-06-16 01:16:37 +00:00
|
|
|
install -Dm644 ../$pkgname.desktop \
|
|
|
|
"$pkgdir/usr/share/applications/$pkgname.desktop"
|
2013-06-25 16:41:43 +00:00
|
|
|
|
2015-06-12 00:36:35 +00:00
|
|
|
# Use system-provided dictionaries
|
2017-06-16 01:16:37 +00:00
|
|
|
ln -Ts /usr/share/hunspell "$pkgdir/usr/lib/$pkgname/dictionaries"
|
|
|
|
ln -Ts /usr/share/hyphen "$pkgdir/usr/lib/$pkgname/hyphenation"
|
2017-02-22 03:19:46 +00:00
|
|
|
|
|
|
|
# Install a wrapper to avoid confusion about binary path
|
2017-06-16 01:16:37 +00:00
|
|
|
install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<END
|
2017-02-22 03:19:46 +00:00
|
|
|
#!/bin/sh
|
2017-06-16 01:16:37 +00:00
|
|
|
exec /usr/lib/$pkgname/thunderbird "\$@"
|
2017-02-22 03:19:46 +00:00
|
|
|
END
|
2013-06-25 16:41:43 +00:00
|
|
|
|
2017-02-22 03:19:46 +00:00
|
|
|
# Replace duplicate binary with wrapper
|
2015-08-15 03:29:26 +00:00
|
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
|
2017-06-16 01:16:37 +00:00
|
|
|
ln -srf "$pkgdir/usr/bin/$pkgname" \
|
|
|
|
"$pkgdir/usr/lib/$pkgname/thunderbird-bin"
|
2013-06-25 16:41:43 +00:00
|
|
|
}
|
2018-12-01 22:56:06 +00:00
|
|
|
|
2019-03-06 02:04:15 +00:00
|
|
|
# vim:set sw=2 et:
|