Advertisement
Guest User

Untitled

a guest
Feb 1st, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. # Maintainer: Det <nimetonmaili g-mail>
  2. # Based on [extra]'s thunderbird
  3.  
  4. pkgname=thunderbird-beta-bin
  5. _pkgname=thunderbird-beta
  6. pkgver=86.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://ftp.mozilla.org/pub/thunderbird/releases/$pkgver/linux-x86_64/en-US/thunderbird-$pkgver.tar.bz2"
  21. 'thunderbird-beta-bin.desktop'
  22. 'vendor.js')
  23. sha512sums=('a239f9dc6fc6476b66356c3db2c0c94d3e332728e4dbd121ee1f7b995258f0b09fe9d8bd8fd3bec6701c90d5ecc811b2f2d0f42bb617c87ff00d644cb91b12a1'
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement