Guest User

Untitled

a guest
Apr 20th, 2021
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Det <nimetonmaili g-mail>
  2. # Based on [extra]'s thunderbird
  3.  
  4. pkgname=thunderbird-beta-bin
  5. _pkgname=thunderbird-beta
  6. pkgver=89.0b1
  7. _major=${pkgver/rc*}
  8. _build=${pkgver/*rc}
  9. pkgrel=1
  10. pkgdesc="Standalone Mail/News reader - Bleeding edge binary version"
  11. arch=('x86_64')
  12. url="https://www.mozilla.org/thunderbird"
  13. license=('GPL' 'LGPL' 'MPL')
  14. depends=('dbus-glib' 'gtk3' 'libxt' 'nss' 'hunspell')
  15. optdepends=('hyphen: Hyphenation'
  16. 'libcanberra: Sound support')
  17. provides=("thunderbird=$pkgver")
  18. conflicts=('thunderbird-beta')
  19. install=$pkgname.install
  20. source=("https://archive.mozilla.org/pub/thunderbird/candidates/89.0b1-candidates/build1/linux-x86_64/en-US/thunderbird-$pkgver.tar.bz2"
  21. 'thunderbird-beta-bin.desktop'
  22. 'vendor.js')
  23. sha512sums=('b3a11c867cc81c6bf88eaf17b895d555e93ee3e5a12419d79bb57c9e8f899966721bbc4de14c1ec177aa1cd19dbf65e64d67a7e50216450ac6eaeb867e54b9b9'
  24. '97976bec26750151ecc474a4d6aabffce5c45de077e2c3c4b76035ae282a26a6959c8dc4726227bb2243c98ff81d92a5eeb252eb234ad702ae4cd4263a630c73'
  25. 'aeb444784732267f1b1e87e6084a776f82a1912c4c2637d2cf1de1c135dd9d41d2ef66d2bd3f9cbd3a79fad32d17ea6e2968ba644d5f887cb66ba6c09a2098f5')
  26. # RC
  27. if [[ $_build = ? ]]; then
  28. source[0]="thunderbird-$pkgver.tar.bz2::https://ftp.mozilla.org/pub/thunderbird/candidates/$_major-candidates/build$_build/linux-x86_64/en-US/thunderbird-$_major.tar.bz2"
  29. fi
  30.  
  31. package() {
  32. # Create directories
  33. msg2 "Creating directory structure..."
  34. install -d "$pkgdir"/usr/bin
  35. install -d "$pkgdir"/usr/share/applications
  36. install -d "$pkgdir"/opt
  37.  
  38. msg2 "Moving stuff in place..."
  39. # Install
  40. cp -r thunderbird/ "$pkgdir"/opt/$_pkgname
  41.  
  42. # Launchers
  43. ln -s /opt/$_pkgname/thunderbird "$pkgdir"/usr/bin/$_pkgname
  44. # breaks application as of 68.0b1
  45. # ln -sf thunderbird "$pkgdir"/opt/$_pkgname/thunderbird-bin
  46.  
  47. # vendor.js
  48. _vendorjs="$pkgdir/opt/$_pkgname/defaults/preferences/vendor.js"
  49. install -Dm644 /dev/stdin "$_vendorjs" <<END
  50. // Use LANG environment variable to choose locale
  51. pref("intl.locale.matchOS", true);
  52.  
  53. // Disable default mailer checking.
  54. pref("mail.shell.checkDefaultMail", false);
  55.  
  56. // Don't disable our bundled extensions in the application directory
  57. pref("extensions.autoDisableScopes", 11);
  58. pref("extensions.shownSelectionUI", true);
  59. END
  60.  
  61. # Desktop
  62. install -m644 $pkgname.desktop "$pkgdir"/usr/share/applications/
  63.  
  64. # Icons
  65. for i in 16 22 24 32 48 256; do
  66. install -d "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/
  67. ln -s /opt/$_pkgname/chrome/icons/default/default$i.png \
  68. "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/$_pkgname.png
  69. done
  70.  
  71. # Use system-provided dictionaries
  72. ln -Ts /usr/share/hunspell "$pkgdir"/opt/$_pkgname/dictionaries
  73. ln -Ts /usr/share/hyphen "$pkgdir"/opt/$_pkgname/hyphenation
  74.  
  75. # Use system certificates
  76. ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/$_pkgname/libnssckbi.so
  77. }
  78.  
RAW Paste Data