Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Felix Golatofski <contact@xdfr.de>
- # Contributor: Det <nimetonmaili g-mail>
- # Contributor: Luna Jernberg <droidbittin@gmail.com>
- # Based on [extra]'s thunderbird: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/thunderbird
- pkgname=thunderbird-beta
- _pkgname=thunderbird
- _pkgver=84.0
- pkgver=84.0b2
- _major=${pkgver/[br]*}
- _build=${pkgver/*rc}
- pkgrel=1
- pkgdesc="Standalone mail and news reader from mozilla.org - Bleeding edge version"
- arch=(x86_64)
- license=(MPL GPL LGPL)
- url="https://www.mozilla.org/thunderbird/"
- depends=(gtk3 mozilla-common libxt startup-notification mime-types dbus-glib alsa-lib
- nss hunspell sqlite ttf-font icu)
- makedepends=(unzip zip diffutils python python2 yasm nasm mesa imake libpulse inetutils xorg-server-xvfb
- autoconf2.13 rust clang llvm gtk2 cbindgen nodejs)
- optdepends=('libcanberra: sound support')
- options=(!emptydirs !makeflags)
- provides=("thunderbird=$pkgver")
- conflicts=('thunderbird-beta-bin')
- install=$pkgname.install
- source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.xz{,.asc}
- thunderbird-beta.desktop)
- sha512sums=('1fbe90404ce6999d4aa66d3e6c12b149db4aaa4ab68d28c7c5d64b649f5832998d6befa3b9bf47a482c3652096ab976317d8845540f72affc7f5e8bfab7226b7'
- 'SKIP'
- 'cab681d5acf17dd8dabf732c0bb5f73fd0444796bb4fd82decdfa8764122513fd2f05c562cf9246eacac67ea84ae85a220f59d7eea7106e0b2f6fc16bc520dd4')
- validpgpkeys=(14F26682D0916CDD81E37B6D61B7B526D98F0353) # 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
- 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 --enable-calendar
- ac_add_options --prefix=/usr
- ac_add_options --enable-release
- ac_add_options --enable-linker=gold
- ac_add_options --enable-hardening
- ac_add_options --enable-optimize
- # https://bugzilla.mozilla.org/show_bug.cgi?id=1521249
- #ac_add_options --enable-rust-simd
- # https://bugzilla.mozilla.org/show_bug.cgi?id=1423822
- ac_add_options --disable-elf-hack
- # Branding
- ac_add_options --with-branding=comm/mail/branding/nightly
- ac_add_options --enable-update-channel=nightly
- ac_add_options --with-distribution-id=org.archlinux
- # 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
- # ac_add_options --with-system-libvpx
- ac_add_options --with-system-nspr
- ac_add_options --with-system-nss
- ac_add_options --enable-system-ffi
- # Features
- ac_add_options --enable-alsa
- ac_add_options --disable-jack
- ac_add_options --enable-startup-notification
- ac_add_options --disable-crashreporter
- ac_add_options --disable-updater
- ac_add_options --disable-gconf
- END
- }
- 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" <<END
- // Use LANG environment variable to choose locale
- pref("intl.locale.requested", "");
- // Use system-provided dictionaries
- pref("spellchecker.dictionary_path", "/usr/share/hunspell");
- // 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);
- END
- _distini="$pkgdir/usr/lib/$pkgname/distribution/distribution.ini"
- 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
- 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/thunderbird-symbolic.svg"
- install -Dm644 ../$pkgname.desktop \
- "$pkgdir/usr/share/applications/$pkgname.desktop"
- # Use system-provided dictionaries
- ln -Ts /usr/share/hunspell "$pkgdir/usr/lib/$pkgname/dictionaries"
- ln -Ts /usr/share/hyphen "$pkgdir/usr/lib/$pkgname/hyphenation"
- # 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"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement