diff -Naur thunderbird.orig/mozconfig thunderbird/mozconfig --- thunderbird.orig/mozconfig 2016-08-03 15:47:47.281638448 +0200 +++ thunderbird/mozconfig 2016-08-03 15:48:52.470875981 +0200 @@ -23,6 +23,7 @@ ac_add_options --enable-system-pixman # Features +ac_add_options --enable-calendar ac_add_options --enable-startup-notification ac_add_options --disable-gstreamer ac_add_options --disable-updater diff -Naur thunderbird.orig/PKGBUILD thunderbird/PKGBUILD --- thunderbird.orig/PKGBUILD 2016-08-03 15:47:47.281638448 +0200 +++ thunderbird/PKGBUILD 2016-08-03 15:48:52.470875981 +0200 @@ -7,6 +7,7 @@ pkgname=thunderbird pkgver=45.2.0 +_tagname=45_2_0 pkgrel=1 pkgdesc="Standalone mail and news reader from mozilla.org" arch=('i686' 'x86_64') @@ -16,7 +17,7 @@ 'dbus-glib' 'alsa-lib' 'libvpx' 'libevent' 'nss' 'hunspell' 'sqlite' 'ttf-font' 'icu') makedepends=('unzip' 'zip' 'diffutils' 'python2' 'yasm' 'mesa' 'imake' 'gconf' - 'libpulse' 'inetutils') + 'libpulse' 'inetutils' 'python2-compare-locales') optdepends=('libcanberra: for sound support') options=('!emptydirs' '!makeflags') source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.xz @@ -26,7 +27,7 @@ firefox-gcc-6.0.patch mozilla-1228540.patch mozilla-1228540-1.patch vendor.js) sha256sums=('bd2389cbb28138668ab41b26f1dce49c455807e09b43fd370ee765ae3f0937c0' - 'b884ccab9bea135600b41a2359073e637dee96dac64d22aceec4adb7fd936b23' + 'e5908af1fc6a22eebef8780cfd379d1ab30f64a293095ce9a01bad27e987650d' '3fba13d88aeb003ab0811ef739463858172ce0662a1c7d62835df3d83ddbb8fb' '24599eab8862476744fe1619a9a53a5b8cdcab30b3fc5767512f31d3529bd05d' '4d1e1ddabc9e975ed39f49e134559a29e01cd49439e358233f1ede43bf5a52bf' @@ -48,8 +49,17 @@ # more information. _mozilla_api_key=16674381-f021-49de-8622-3021c5942aff - prepare() { + # Download translations + _locales=$(sed -e '/ osx/d' -e 's/ linux win32//' -e '/en-US/d' $pkgname-$pkgver/mail/locales/shipped-locales) + [ -e i18n ] && rm -r i18n + mkdir i18n && pushd i18n + for lang in $_locales; do + curl http://hg.mozilla.org/releases/l10n/mozilla-release/$lang/archive/THUNDERBIRD_${_tagname}_RELEASE.tar.gz | tar zxf - + mv $lang-THUNDERBIRD_${_tagname}_RELEASE $lang + done + popd + cd $pkgname-$pkgver cp ../mozconfig .mozconfig @@ -89,6 +99,25 @@ export PATH="$srcdir/path:$PATH" make -f client.mk build + + _locales=$(sed -e '/ osx/d' -e 's/ linux win32//' -e '/en-US/d' mail/locales/shipped-locales) + + # Include translations in Lightning + pushd obj-*-linux-gnu/calendar/lightning + for lang in $_locales; do + make LOCALE_MERGEDIR="$srcdir/i18n-merged/$lang" L10NBASEDIR="$srcdir/i18n" merge-$lang + make LOCALE_MERGEDIR="$srcdir/i18n-merged/$lang" L10NBASEDIR="$srcdir/i18n" libs-$lang + done + make tools + popd + + # Create langpacks + pushd obj-*-linux-gnu/mail/locales + for lang in $_locales; do + make LOCALE_MERGEDIR="$srcdir/i18n-merged/$lang" L10NBASEDIR="$srcdir/i18n" merge-$lang + make LOCALE_MERGEDIR="$srcdir/i18n-merged/$lang" L10NBASEDIR="$srcdir/i18n" langpack-$lang + done + popd } package() { @@ -97,6 +126,12 @@ install -Dm644 ../vendor.js "$pkgdir/usr/lib/thunderbird/defaults/preferences/vendor.js" + # Install langpacks + for langpack in obj-x*-linux-gnu/dist/linux-*/xpi/thunderbird-$pkgver.*.langpack.xpi; do + _extension_name=`basename $langpack | sed "s/thunderbird-$pkgver.\(.*\).langpack.xpi/langpack-\1@thunderbird.mozilla.org.xpi/"` + install -Dm644 "$langpack" "$pkgdir/usr/lib/thunderbird/extensions/$_extension_name"; + done + for i in 16 22 24 32 48 256; do install -Dm644 other-licenses/branding/thunderbird/mailicon$i.png \ "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/thunderbird.png"