Guest User

Untitled

a guest
Jan 5th, 2021
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Greg White <gwhite@kupulau.com>
  2. # Contributor: bittin
  3. # Maintainer: Greg White <gwhite@kupulau.com>
  4.  
  5. pkgname=brave-beta-bin
  6. pkgver=1.19.74
  7. pkgrel=1
  8. pkgdesc='Web browser that blocks ads and trackers by default (beta binary release).'
  9. arch=('x86_64')
  10. url='https://brave.com/download-beta'
  11. license=('MPL2')
  12. depends=('gtk3' 'nss' 'alsa-lib' 'libxss' 'ttf-font')
  13. optdepends=('cups: Printer support'
  14. 'pepper-flash: Adobe Flash support'
  15. 'mesa: Hardware accelerated rendering'
  16. 'libglvnd: Support multiple different OpenGL drivers at any given time'
  17. 'libgnome-keyring: gnome keyriung support')
  18. provides=("${pkgname}" 'brave-beta-browser')
  19. conflicts=("${pkgname}")
  20. source=("https://github.com/brave/brave-browser/releases/download/v${pkgver}/brave-browser-beta_${pkgver}_amd64.deb"
  21. 'MPL2::https://raw.githubusercontent.com/brave/browser-laptop/master/LICENSE.txt'
  22. "$pkgname.sh")
  23. options=(!strip)
  24. sha512sums=('e0be03c87cb3fd582ec77a6d2537e4b1e8305bdabab1cef5b88044979c29f14356cfacefb201e6ca0cd1b697ae5444561aefcbcafa7eb4e6aa5784a89a4f091f'
  25. 'b8823586fead21247c8208bd842fb5cd32d4cb3ca2a02339ce2baf2c9cb938dfcb8eb7b24c95225ae625cd0ee59fbbd8293393f3ed1a4b45d13ba3f9f62a791f'
  26. 'b4aa6d6faf2b879d14310141dd92dc7144ff5b45a1075ee54451427029a01812a25f8249540d6bc9f0e9bbe6efc4d8913cc90d4c9546566b19fd1f605cf1a883')
  27.  
  28. prepare() {
  29. mkdir -p brave
  30. tar xf data.tar.xz -C brave
  31. # Delete unneeded cron job
  32. rm -rf brave/opt/brave.com/brave-beta/cron
  33. # Use our script to launch (allows overriding flags, sets up data dir)
  34. sed -i "s/\/usr\/bin\/brave-browser-beta/\/usr\/bin\/brave-beta/g" brave/usr/share/applications/brave-browser-beta.desktop
  35. }
  36.  
  37. package() {
  38. cp -a --reflink=auto brave/opt "$pkgdir/opt"
  39. cp -a --reflink=auto brave/usr "$pkgdir/usr"
  40.  
  41. install -Dm0755 "$pkgname.sh" "$pkgdir/usr/bin/brave-beta"
  42. install -Dm0644 "brave/opt/brave.com/brave-beta/product_logo_128_beta.png" "$pkgdir/usr/share/pixmaps/brave-browser-beta.png"
  43.  
  44. install -Dm0664 -t "$pkgdir/usr/share/licenses/$pkgname" "brave/opt/brave.com/brave-beta/LICENSE"
  45. }
RAW Paste Data