# Contributor: Greg White # Maintainer: Greg White pkgname=brave-beta-bin pkgver=1.66.87 pkgrel=1 pkgdesc='Web browser that blocks ads and trackers by default (beta binary release).' arch=(x86_64 aarch64) url='https://brave.com/download-beta' license=('MPL2') depends=('gtk3' 'nss' 'alsa-lib' 'libxss' 'ttf-font') optdepends=('cups: Printer support' 'mesa: Hardware accelerated rendering' 'libglvnd: Support multiple different OpenGL drivers at any given time' 'libgnome-keyring: gnome keyriung support') provides=("${pkgname}" 'brave-beta-browser') conflicts=() source=("brave-beta-bin.sh") source_x86_64=("https://github.com/brave/brave-browser/releases/download/v${pkgver}/brave-browser-beta_${pkgver}_amd64.deb") source_aarch64=("https://github.com/brave/brave-browser/releases/download/v${pkgver}/brave-browser-beta_${pkgver}_arm64.deb") sha512sums=('56be4daa8294c7c3d4b3f1ce7169ac575be0faa623d7cd977eb135e971914b90e3f596ecad72d89178de04e65cd3d49c138e8518d1dccf9fc814d0858b38767e') sha512sums_x86_64=('c31596180690d22d2793984dbe48d1a21b5e09ecac7ea19764963921f645a82fdfeb686f9bed30a2402a4d67a3cf272ef0f02ca1db17dd76c2d1fc081cfd0df6') sha512sums_aarch64=('0f22343f3ba55dc0c278da0425883b86ae52c053ed16624f65d4fd61edf44843090d4ccce86ae0e08a4d4daaeb8f0e12337512f7e5bd510c4500d40577972a6e') options=(!strip) prepare() { mkdir -p brave tar xf data.tar.xz -C brave # Delete unneeded cron job rm -rf brave/opt/brave.com/brave-beta/cron # Use our script to launch (allows overriding flags, sets up data dir) sed -i "s/\/usr\/bin\/brave-browser-beta/\/usr\/bin\/brave-beta/g" brave/usr/share/applications/brave-browser-beta.desktop } package() { cp -a --reflink=auto brave/opt "$pkgdir/opt" cp -a --reflink=auto brave/usr "$pkgdir/usr" install -Dm0755 "$pkgname.sh" "$pkgdir/usr/bin/brave-beta" install -Dm0644 "brave/opt/brave.com/brave-beta/product_logo_128_beta.png" "$pkgdir/usr/share/pixmaps/brave-browser-beta.png" install -Dm0664 -t "$pkgdir/usr/share/licenses/$pkgname" "brave/opt/brave.com/brave-beta/LICENSE" chmod 4755 "$pkgdir/opt/brave.com/brave-beta/chrome-sandbox" }