Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:drommer:archlinux
thunderbird-kde-stable
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package thunderbird-kde-stable
# Maintainer: Drommer <drommer@github.com> # Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org> # Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: Alexander Baldeck <alexander@archlinux.org> # Contributor: Dale Blount <dale@archlinux.org> # Contributor: Anders Bostrom <anders.bostrom@home.se> _pkgname=thunderbird pkgname=thunderbird-kde-stable pkgver=115.9.0 pkgrel=1 pkgdesc="Standalone mail and news reader from mozilla.org" url="https://www.thunderbird.net" arch=('x86_64') license=('MPL' 'GPL' 'LGPL') depends=('alsa-lib' 'botan2' 'bzip2' 'cairo' 'dbus' 'dbus-glib' 'ffmpeg' 'fontconfig' 'freetype2' 'gcc-libs' 'gdk-pixbuf2' 'glib2' 'glibc' 'gnupg' 'gtk3' 'hunspell' 'icu' 'json-c' 'libcanberra' 'libevent' 'libffi' 'libjpeg-turbo' 'libvpx' 'libwebp' 'libx11' 'libxcomposite' 'libxdamage' 'libxext' 'libxfixes' 'libxrender' 'mime-types' 'pango' 'pixman' 'sqlite' 'ttf-font' 'zlib') makedepends=('cbindgen' 'clang' 'diffutils' 'findutils' 'gawk' 'libice' 'libotr' 'libpulse' 'libsm' 'lld' 'llvm' 'mesa' 'nasm' 'nodejs' 'perl' 'python' 'rust' 'unzip' 'wasi-compiler-rt' 'wasi-libc' 'wasi-libc++' 'wasi-libc++abi' 'zip') optdepends=('hunspell-en_us: Spell checking, American English' 'libotr: OTR support for active one-to-one chats' 'libnotify: Notification integration') provides=("thunderbird=${pkgver}") conflicts=('thunderbird') options=(!emptydirs !makeflags !lto) source=(https://archive.mozilla.org/pub/$_pkgname/releases/$pkgver/source/$_pkgname-$pkgver.source.tar.xz $_pkgname.desktop # Gecko/Toolkit mozilla-kde.patch mozilla-nongnome-proxies.patch # Global Menu unity-menubar.patch # Upstream set-gdk-focus-change-mask-bgo-1196777.patch wayland-no-dbus-bgo-860033.patch) sha256sums=('2aeb77ca7038df6f3d306f9c3d2a4ea615af0edcf0f7290215ca5f30c1290e57' '486cd2b6763433271d12ff920487bf79d163b834c1a02c0b3e46d4048d72a5b4' # Gecko/Toolkit '8344d836d68096d1513c71cb7e1c0924e246864b0c9db8ae9eee5190f26c1d62' '27ee8d313828ae1a49c7eeb3d19bcbc2c223e7d6ae737fb058d8afec6d23cede' # Global Menu '23607d072bf7202f9ecd158e590526aa8ff8b0ed09ba6a28bef373729438ecba' # Upstream 'b47ea62937d7f87485e0f372c0110785bbb6f4dbc79d3d139d54887cac0773e3' 'efdf58e256b298bf8f0c0b7ead119830e99d1b2bf29ba1e43a9e0eeb8ac2e538') validpgpkeys=( 14F26682D0916CDD81E37B6D61B7B526D98F0353 # Mozilla Software Releases <release@mozilla.com> 4360FE2109C49763186F8E21EBE41E90F6F12F6D # Mozilla Software Releases <release@mozilla.com> ) # 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 sed -i 's|psutil>=5.4.2,<=5.8.0|psutil>=5.4.2,<=5.9.0|g' ./python/sites/mach.txt sed -i 's|zstandard>=0.11.1,<=0.19.0|zstandard>=0.11.1,<=0.22.0|g' ./python/sites/mach.txt sed -i 's|vendored:third_party/python/typing_extensions||g' ./python/sites/mach.txt # Make icon transparent sed -i '/^<rect/d' comm/mail/branding/thunderbird/TB-symbolic.svg # KDE patch -Np1 -i "$srcdir/mozilla-nongnome-proxies.patch" patch -Np1 -i "$srcdir/mozilla-kde.patch" # Global Menu patch -Np1 -i "$srcdir/unity-menubar.patch" # Upstream patch -Np1 -i "$srcdir/set-gdk-focus-change-mask-bgo-1196777.patch" patch -Np1 -i "$srcdir/wayland-no-dbus-bgo-860033.patch" echo -n "$_google_api_key" >google-api-key echo -n "$_mozilla_api_key" >mozilla-api-key cat >.mozconfig <<END ac_add_options --enable-application=comm/mail ac_add_options --prefix=/usr ac_add_options --enable-release ac_add_options --enable-linker=lld ac_add_options --enable-hardening ac_add_options --enable-optimize ac_add_options --enable-rust-simd ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot # Branding ac_add_options --enable-official-branding ac_add_options --enable-update-channel=release ac_add_options --with-distribution-id=org.archlinux # Keys 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 ac_add_options --with-mozilla-api-keyfile=${PWD@Q}/mozilla-api-key # Features ac_add_options --enable-alsa ac_add_options --disable-jack ac_add_options --disable-crashreporter ac_add_options --disable-updater ac_add_options --disable-tests # System addons ac_add_options --with-unsigned-addon-scopes=app,system ac_add_options --allow-addon-sideload END } build() { cd $_pkgname-$pkgver # malloc_usable_size is used in various parts of the codebase CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" export MOZILLA_OFFICIAL=1 export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system export MOZ_BUILD_DATE=$(date --date "@${SOURCE_DATE_EPOCH}" "+%Y%m%d%H%M%S") export MOZBUILD_STATE_PATH="${srcdir}/mozbuild" export MOZ_ENABLE_FULL_SYMBOLS=1 export MOZ_NOSPAM=1 ./mach configure echo "Building thunderbird..." ./mach build echo "Building symbol archive..." ./mach buildsymbols } package() { cd $_pkgname-$pkgver DESTDIR="$pkgdir" ./mach install install -Dvm644 /dev/stdin "$pkgdir/usr/lib/$_pkgname/defaults/pref/vendor-prefs.js" <<END // Use LANG environment variable to choose locale pref("intl.locale.requested", ""); // 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); // Disable telemetry pref("datareporting.healthreport.uploadEnabled", false); pref("datareporting.policy.dataSubmissionEnabled", false); pref("toolkit.telemetry.archive.enabled", false); END install -Dvm644 /dev/stdin "$pkgdir/usr/lib/$_pkgname/distribution/distribution.ini" <<END [Global] id=archlinux version=1.0 about=Mozilla Thunderbird for Arch Linux [Preferences] app.distributor=archlinux app.distributor.channel=thunderbird END 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/$_pkgname-symbolic.svg" install -Dvm644 ../$_pkgname.desktop \ "$pkgdir/usr/share/applications/$_pkgname.desktop" # Install a wrapper to avoid confusion about binary path install -Dm755 /dev/stdin "$pkgdir/usr/bin/$_pkgname" <<END #!/bin/sh exec /usr/lib/$_pkgname/thunderbird "\$@" END # Replace duplicate binary with wrapper # https://bugzilla.mozilla.org/show_bug.cgi?id=658850 ln -srf "$pkgdir/usr/bin/$_pkgname" \ "$pkgdir/usr/lib/$_pkgname/thunderbird-bin" }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor