Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2021
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. # Maintainer: Yurii Kolesnykov <root@yurikoles.com>
  2. # Based on [extra]'s thunderbird by Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
  3.  
  4. pkgname=thunderbird-beta
  5. _pkgname=thunderbird
  6. _pkgver=88.0
  7. pkgver=${_pkgver}b2
  8. pkgrel=1
  9. pkgdesc='Standalone mail and news reader from mozilla.org - Bleeding edge version'
  10. url='https://www.mozilla.org/thunderbird/'
  11. arch=(x86_64)
  12. license=(MPL GPL LGPL)
  13. depends=(
  14. glibc gtk3 libgdk-3.so mime-types dbus libdbus-1.so dbus-glib alsa-lib nss
  15. hunspell sqlite ttf-font libvpx libvpx.so zlib bzip2 botan libwebp libevent
  16. libjpeg-turbo libffi nspr gcc-libs libx11 libxrender libxfixes libxext
  17. libxcomposite libxdamage pango libpango-1.0.so cairo gdk-pixbuf2 icu
  18. libicui18n.so libicuuc.so freetype2 libfreetype.so fontconfig
  19. libfontconfig.so glib2 libglib-2.0.so pixman libpixman-1.so gnupg
  20. )
  21. makedepends=(
  22. unzip zip diffutils python python-setuptools yasm nasm mesa imake libpulse
  23. inetutils xorg-server-xvfb autoconf2.13 rust clang llvm gtk2 cbindgen nodejs
  24. gawk perl findutils libotr
  25. )
  26. optdepends=(
  27. 'libcanberra: sound support'
  28. 'libotr: OTR support for active one-to-one chats'
  29. )
  30. options=(!emptydirs !makeflags)
  31. provides=("thunderbird=$pkgver")
  32. conflicts=('thunderbird-beta-bin')
  33. source=(https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/source/thunderbird-$pkgver.source.tar.xz{,.asc}
  34. thunderbird-beta.desktop
  35. vendor-prefs.js
  36. distribution.ini
  37. mozconfig.cfg)
  38. validpgpkeys=(14F26682D0916CDD81E37B6D61B7B526D98F0353) # Mozilla Software Releases <release@mozilla.com>
  39.  
  40. # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
  41. # Note: These are for Arch Linux use ONLY. For your own distribution, please
  42. # get your own set of keys. Feel free to contact foutrelis@archlinux.org for
  43. # more information.
  44. _google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM
  45.  
  46. # Mozilla API keys (see https://location.services.mozilla.com/api)
  47. # Note: These are for Arch Linux use ONLY. For your own distribution, please
  48. # get your own set of keys. Feel free to contact heftig@archlinux.org for
  49. # more information.
  50. _mozilla_api_key=16674381-f021-49de-8622-3021c5942aff
  51.  
  52. prepare() {
  53. cd $_pkgname-$_pkgver
  54.  
  55. echo "${noextract[@]}"
  56.  
  57. printf "%s" "$_google_api_key" >google-api-key
  58. printf "%s" "$_mozilla_api_key" >mozilla-api-key
  59. cp ../mozconfig.cfg .mozconfig
  60. sed "s|@PWD@|${PWD@Q}|g" -i .mozconfig
  61. }
  62.  
  63. build() {
  64. cd $_pkgname-$_pkgver
  65. if [[ -n "${SOURCE_DATE_EPOCH}" ]]; then
  66. export MOZ_BUILD_DATE=$(date --date "@${SOURCE_DATE_EPOCH}" "+%Y%m%d%H%M%S")
  67. fi
  68. ./mach create-mach-environment
  69. ./mach configure
  70. ./mach build
  71. ./mach buildsymbols
  72. }
  73.  
  74. package() {
  75.  
  76. cd $_pkgname-$_pkgver
  77. DESTDIR="$pkgdir" ./mach install
  78.  
  79. install -Dm 644 ../vendor-prefs.js -t "$pkgdir/usr/lib/$pkgname/defaults/pref"
  80. install -Dm 644 ../distribution.ini -t "$pkgdir/usr/lib/$pkgname/distribution"
  81. install -Dm 644 ../$pkgname.desktop -t "$pkgdir/usr/share/applications"
  82.  
  83. for i in 16 22 24 32 48 64 128 256; do
  84. install -Dm644 comm/mail/branding/thunderbird/default${i}.png \
  85. "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png"
  86. done
  87. install -Dm644 comm/mail/branding/thunderbird/TB-symbolic.svg \
  88. "$pkgdir/usr/share/icons/hicolor/symbolic/apps/thunderbird-symbolic.svg"
  89.  
  90. # Use system-provided dictionaries
  91. ln -Ts /usr/share/hunspell "$pkgdir/usr/lib/$pkgname/dictionaries"
  92. ln -Ts /usr/share/hyphen "$pkgdir/usr/lib/$pkgname/hyphenation"
  93.  
  94. # Install a wrapper to avoid confusion about binary path
  95. install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<END
  96. #!/bin/sh
  97. exec /usr/lib/$pkgname/thunderbird "\$@"
  98. END
  99.  
  100. # Replace duplicate binary with wrapper
  101. # https://bugzilla.mozilla.org/show_bug.cgi?id=658850
  102. ln -srf "$pkgdir/usr/bin/$pkgname" \
  103. "$pkgdir/usr/lib/$pkgname/thunderbird-bin"
  104. }
  105.  
  106. sha256sums=('049d006eb3dc8673b899e7c4ebacd26aa1d420c9ebe2fcd2b85a0c424cd0137d'
  107. 'SKIP'
  108. 'd7aa1bd77f74c255446eec4171e4360c7a6215dac1d29c8ee71ec1f2a03bda3d'
  109. 'fa11b4736bbf53ec015f71cd42b1040b22d1a855c562b76927b3f0eccb925c85'
  110. 'bc3aae2cc00dc9806f54606f98d967366a2ba7223f6a3ad1c658a653ebff5569'
  111. '7b4d87f55bf23798023421e6918d314a5c81b7d80084afd8a59581d0bf55fe4d')
  112.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement