blob: 2efad66acb6f845cb8d972937bc8cd8f2e2567ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Contributor: Greg White <gwhite@kupulau.com>
# Maintainer: Greg White <gwhite@kupulau.com>
pkgname=brave-beta-bin
pkgver=1.74.38
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=('71e276c06554258da5552a1e03e9e68833be5858e7ea68e0c4fdefa5aa4bb09a8ed12863c269c14825074bc5e67f1703c6e0725124edf7ce504f41469f208704')
sha512sums_aarch64=('SKIP')
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"
}
|