pkgname: thunderbird pkgver: '153.0.3esr.strings_all' pkgrel: 1 pkgdesc: Standalone mail and news reader from mozilla.org url: 'https://www.mozilla.org/thunderbird' arch: x86_64 license: - MPL-2.0 GPL-2.0-only LGPL-2.1-only depends: - startup-notification - hunspell - desktop-file-utils - hicolor-icon-theme - shared-mime-info makedepends: - rustc - autoconf2-13 - alsa-lib - gtk3 - zip - unzip - libevent - libwebp - nspr - nss - yasm - dbus-glib - doxygen - libnotify - openjdk - sqlite - wireless-tools - xorg-libx11 - xorg-libxt - xorg-libxrandr - cbindgen - pulseaudio - node - libvpx - mesa - xorg-libxcomposite - xorg-libxdamage source: - 'https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${pkgver}/source/thunderbird-${pkgver}.source.tar.xz' - ${pkgname}.desktop sha256sums: - SKIP - SKIP build: | cd ${pkgname}-${pkgver} cat > mozconfig << "EOF" ac_add_options --enable-application=comm/mail ac_add_options --prefix=/usr ac_add_options --enable-release ac_add_options --enable-hardening ac_add_options --enable-optimize # Branding ac_add_options --enable-official-branding ac_add_options --enable-update-channel=release ac_add_options --with-distribution-id=NuTyX # Keys #ac_add_options --with-google-location-service-api-keyfile=@PWD@/google-api-key #ac_add_options --with-google-safebrowsing-api-keyfile=@PWD@/google-api-key #ac_add_options --with-mozilla-api-keyfile=@PWD@/mozilla-api-key # System libraries ac_add_options --with-system-zlib # ac_add_options --with-system-bz2 # ac_add_options --with-system-icu ac_add_options --with-system-jpeg # does not have APNG support ac_add_options --with-system-png ac_add_options --with-system-libvpx ac_add_options --with-system-nspr ac_add_options --with-system-nss ac_add_options --with-system-webp ac_add_options --with-system-libevent ac_add_options --with-system-ffi ac_add_options --with-system-pixman # Features # ac_add_options --enable-alsa ac_add_options --disable-jack ac_add_options --disable-crashreporter ac_add_options --disable-updater # System addons ac_add_options --with-unsigned-addon-scopes=app,system ac_add_options --allow-addon-sideload # Using sandboxed wasm libraries has been moved to all builds instead # of only mozilla automation builds. It requires extra llvm packages # and was reported to seriously slow the build. Disable it. ac_add_options --without-wasm-sandboxed-libraries EOF sed -e '1i\#![warn(dangerous_implicit_autorefs)]\r' \ -i third_party/rust/allocator-api2/src/stable/vec/mod.rs export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none export MOZBUILD_STATE_PATH=${PWD}/mozbuild SHELL=/bin/sh ./mach build SHELL=/bin/sh DESTDIR="${PKGDIR}" MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none ./mach install unset MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE unset MOZBUILD_STATE_PATH for i in 16 22 24 32 48 64 128 256; do install -Dm644 comm/mail/branding/thunderbird/default${i}.png \ "${PKGDIR}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png" done install -Dm644 comm/mail/branding/thunderbird/TB-symbolic.svg \ "${PKGDIR}/usr/share/icons/hicolor/symbolic/apps/thunderbird-symbolic.svg" mkdir -pv ${PKGDIR}/usr/share/applications install -Dm644 ./thunderbird.desktop \ ${PKGDIR}/usr/share/applications/thunderbird.desktop mkdir -pv ${PKGDIR}/usr/lib/thunderbird/defaults/pref cat > ${PKGDIR}/usr/lib/thunderbird/defaults/pref/vendor.js << "EOF" // Use LANG environment variable to choose locale pref("intl.locale.requested", ""); EOF package: | true