Guest User

Untitled

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