KoNicks

Untitled

Apr 29th, 2021
46
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Caleb Maclennan <caleb@alerque.com>
  2. # Contributor: Jacob Mischka <jacob@mischka.me>
  3. # Contributor: Manuel Mazzuola <origin.of@gmail.com>
  4. # Contributor: Simón Oroño <simonorono@protonmail.com>
  5. # Contributor: now-im <now im 627 @ gmail . com>
  6. # Contributor: Giusy Digital <kurmikon at libero dot it>
  7. # Mantainer: Andrés Rodríguez <hello@andres.codes>
  8. # https://aur.archlinux.org/packages/brave-bin/
  9.  
  10. pkgname=brave-bin
  11. pkgver=1.23.75
  12. pkgrel=1
  13. epoch=1
  14. pkgdesc="Web browser that blocks ads and trackers by default (binary release)."
  15. arch=("x86_64")
  16. url="https://brave.com/download"
  17. license=("MPL2" "BSD" "custom:chromium")
  18. depends=("gtk3" "nss" "alsa-lib" "libxss" "ttf-font")
  19. optdepends=("cups: Printer support"
  20.             "libgnome-keyring: Enable GNOME keyring support"
  21.             "libnotify: Native notification support")
  22. provides=("${pkgname%-bin}" "brave-browser")
  23. conflicts=("${pkgname%-bin}")
  24. source=("$pkgname-$pkgver.zip::https://github.com/brave/brave-browser/releases/download/v${pkgver}/brave-browser-${pkgver}-linux-amd64.zip"
  25.         "$pkgname.sh"
  26.         "brave-browser.desktop"
  27.         "logo.png")
  28. options=(!strip)
  29. sha512sums=("50705a4b74374816c9a47161a67242fdb1888b8984061c2c1e03c9378256f6b50fb83a4a03b9043d8877d9ef15c3bc110af7ded0f317ab3586dbc146c121277c"
  30.             "6912f1e0b20f16078e15ce75eca61b29fd5c415c63df9bd69a547d402bf00599fdcbe1c0898b8d2dc865dc1b604f81e2ec21525ecc61a0fcafba0d9f87434540"
  31.             "137e14b6ff8faf19fcbfc2adcde73a3fb8f6529e9662c8eed04fc4a891073775c20b79c7149fb617465f53b980a8e46114c1c8eb704be7755da8d22a974761dd"
  32.             "d7bef52e336bd908d24bf3a084a1fc480831d27a3c80af4c31872465b6a0ce39bdf298e620ae9865526c974465807559cc75610b835e60b4358f65a8a8ff159e")
  33. noextract=("$pkgname-$pkgver.zip")
  34.  
  35. prepare() {
  36.   mkdir -p brave
  37.   bsdtar -xf $pkgname-$pkgver.zip -C brave
  38.   chmod +x brave/brave
  39. }
  40.  
  41. _bsdtardir="brave"
  42.  
  43. package() {
  44.     install -d -m0755 "$pkgdir/usr/lib"
  45.     cp -a $_bsdtardir "$pkgdir/usr/lib/$pkgname"
  46.  
  47.     # allow firejail users to get the suid sandbox working
  48.     chmod 4755 $pkgdir/usr/lib/brave-bin/chrome-sandbox
  49.  
  50.     install -Dm0755 "$pkgname.sh" "$pkgdir/usr/bin/brave"
  51.     install -Dm0644 -t "$pkgdir/usr/share/applications" "brave-browser.desktop"
  52.     install -Dm0644 "logo.png" "$pkgdir/usr/share/pixmaps/brave.png"
  53.     LICENSES_DIR="$pkgdir/usr/share/licenses/$pkgname"
  54.     mkdir -p "$LICENSES_DIR"
  55.     if [ -f "$pkgdir/usr/lib/$pkgname/LICENSE" ] && [ -f "$pkgdir/usr/lib/$pkgname/LICENSES.chromium.html" ]; then
  56.       mv "$pkgdir/usr/lib/$pkgname/"{LICENSE,LICENSES.chromium.html} "$LICENSES_DIR"
  57.     fi
  58. }
RAW Paste Data