Advertisement
Guest User

Untitled

a guest
Nov 20th, 2020
150
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=84.0b3
  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=('8285d6a570f9901ac1943b5e7fa0b778b3a58dd1275896443754ad077c8ff2e1'
  29. '4bec62032e49c28ff27750abddbdbdbb1a4b5cba719c39498968fe53adee790b'
  30. '210f13ea47c4b96387f26ee7fc4dfc5c192cfb169aef2a13303fbd1ee58b3761')
  31.  
  32. # RC
  33. if [[ $_build = ? ]]; then
  34. 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"
  35. fi
  36.  
  37. package() {
  38. # Create directories
  39. msg2 "Creating directory structure..."
  40. mkdir -p "$pkgdir"/usr/bin
  41. mkdir -p "$pkgdir"/usr/share/applications
  42. mkdir -p "$pkgdir"/opt
  43.  
  44. msg2 "Moving stuff in place..."
  45. # Install
  46. cp -r firefox/ "$pkgdir"/opt/$_pkgname
  47.  
  48. # Launchers
  49. install -m755 $_pkgname.sh "$pkgdir"/usr/bin/$_pkgname
  50. ln -s $_pkgname "$pkgdir"/usr/bin/$pkgname # compatibility
  51. # ln -sf firefox "$pkgdir"/opt/$_pkgname/firefox-bin
  52.  
  53. # Desktops
  54. install -m644 *.desktop "$pkgdir"/usr/share/applications/
  55.  
  56. # Icons
  57. for i in 16x16 32x32 48x48 64x64 128x128; do
  58. install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/
  59. ln -s /opt/$_pkgname/browser/chrome/icons/default/default${i/x*}.png \
  60. "$pkgdir"/usr/share/icons/hicolor/$i/apps/$_pkgname.png
  61. done
  62.  
  63. # Use system-provided dictionaries
  64. #rm -r "$pkgdir"/opt/$_pkgname/dictionaries
  65. ln -Ts /usr/share/hunspell "$pkgdir"/opt/$_pkgname/dictionaries
  66. ln -Ts /usr/share/hyphen "$pkgdir"/opt/$_pkgname/hyphenation
  67.  
  68. # Use system certificates
  69. ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/$_pkgname/libnssckbi.so
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement