Advertisement
Guest User

Untitled

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