Advertisement
Guest User

Untitled

a guest
Feb 13th, 2024
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. # Maintainer: Det <nimetonmaili g-mail>
  2. # Maintainer: bermudi <archlinux.i5beg@dabg.uk>
  3. # Based on [extra]'s thunderbird
  4.  
  5. pkgname=thunderbird-beta-bin
  6. _pkgname=thunderbird-beta
  7. pkgver=123.0b5
  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. 'org.mozilla.thunderbird-beta-bin.desktop'
  23. 'vendor.js')
  24. sha512sums=('f1f93e0628d80f17361605612978e30b451d49caf22fd6725ed817e8f8b5bb462c8f65b195ddd9c23984ff8321ffec42778008276625dd3449d958836c0da3b0'
  25. 'b42b4b86aa072dca7f9e401c1f0c593396cda45fe56326af997db4042549cf895f1f0682c0d007647cda5200f11c06cef13e006a5973eae2bfa31b86d4d32f79'
  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 org.mozilla.thunderbird-beta-bin.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.  
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement