Advertisement
Guest User

Untitled

a guest
Nov 12th, 2020
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. # Maintainer: Simon Brulhart <simon@brulhart.me>
  2. # Contributors: Det <nimetonmaili g-mail>, Achilleas Pipinellis, speed145a, Schnouki, bittin
  3.  
  4. pkgname=firefox-beta-bin
  5. _pkgname=firefox-beta
  6. pkgver=83.0rc2
  7. _major=${pkgver/rc*}
  8. _build=${pkgver/*rc}
  9. pkgrel=1
  10. pkgdesc="Standalone web browser from mozilla.org - Beta"
  11. arch=('x86_64')
  12. url="https://www.mozilla.org/en-US/firefox/channel/#beta"
  13. license=('MPL' 'GPL' 'LGPL')
  14. depends=('dbus-glib' 'gtk3' 'libxt' 'nss')
  15. optdepends=('ffmpeg: H264/AAC/MP3 decoding'
  16. 'hunspell: Spell checking'
  17. 'hyphen: Hyphenation'
  18. 'libnotify: Notification integration'
  19. 'networkmanager: Location detection via available WiFi networks'
  20. 'pulseaudio: Sound'
  21. 'upower: Battery API')
  22. provides=("firefox=$pkgver")
  23. conflicts=('firefox-beta')
  24. install=$pkgname.install
  25. source=("https://ftp.mozilla.org/pub/firefox/releases/$pkgver/linux-x86_64/en-US/firefox-$pkgver.tar.bz2"
  26. "$_pkgname.sh"
  27. "$pkgname.desktop")
  28. sha256sums=('93ff827fdcba92ddb71851c46ac8192a727ed61402e896c6262943e382f92412'
  29. '4bec62032e49c28ff27750abddbdbdbb1a4b5cba719c39498968fe53adee790b'
  30. '210f13ea47c4b96387f26ee7fc4dfc5c192cfb169aef2a13303fbd1ee58b3761')
  31. # RC
  32. if [[ $_build = ? ]]; then
  33. source[0]="firefox-$pkgver.tar.bz2::https://ftp.mozilla.org/pub/firefox/candidates/$_major-candidates/build$_build/linux-x86_64/en-US/firefox-$_major.tar.bz2"
  34. fi
  35.  
  36. package() {
  37. # Create directories
  38. msg2 "Creating directory structure..."
  39. mkdir -p "$pkgdir"/usr/bin
  40. mkdir -p "$pkgdir"/usr/share/applications
  41. mkdir -p "$pkgdir"/opt
  42.  
  43. msg2 "Moving stuff in place..."
  44. # Install
  45. cp -r firefox/ "$pkgdir"/opt/$_pkgname
  46.  
  47. # Launchers
  48. install -m755 $_pkgname.sh "$pkgdir"/usr/bin/$_pkgname
  49. ln -s $_pkgname "$pkgdir"/usr/bin/$pkgname # compatibility
  50. # ln -sf firefox "$pkgdir"/opt/$_pkgname/firefox-bin
  51.  
  52. # Desktops
  53. install -m644 *.desktop "$pkgdir"/usr/share/applications/
  54.  
  55. # Icons
  56. for i in 16x16 32x32 48x48 64x64 128x128; do
  57. install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/
  58. ln -s /opt/$_pkgname/browser/chrome/icons/default/default${i/x*}.png \
  59. "$pkgdir"/usr/share/icons/hicolor/$i/apps/$_pkgname.png
  60. done
  61.  
  62. # Use system-provided dictionaries
  63. #rm -r "$pkgdir"/opt/$_pkgname/dictionaries
  64. ln -Ts /usr/share/hunspell "$pkgdir"/opt/$_pkgname/dictionaries
  65. ln -Ts /usr/share/hyphen "$pkgdir"/opt/$_pkgname/hyphenation
  66.  
  67. # Use system certificates
  68. ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/$_pkgname/libnssckbi.so
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement