blob: 018c48b47d9f232fda1b11cc13fb53c6db92a59b (
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
|
# Contributor: Greg White <gwhite@kupulau.com>
# Maintainer: Greg White <gwhite@kupulau.com>
pkgname=brave-beta-bin
pkgver=1.19.51
pkgrel=1
pkgdesc='Web browser that blocks ads and trackers by default (beta binary release).'
arch=('x86_64')
url='https://brave.com/download-beta'
license=('MPL2')
depends=('gtk3' 'nss' 'alsa-lib' 'libxss' 'ttf-font')
optdepends=('cups: Printer support'
'pepper-flash: Adobe Flash 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=("${pkgname}")
source=("https://github.com/brave/brave-browser/releases/download/v${pkgver}/brave-browser-beta_${pkgver}_amd64.deb"
'MPL2::https://raw.githubusercontent.com/brave/browser-laptop/master/LICENSE.txt'
"$pkgname.sh")
options=(!strip)
sha512sums=('ef081ef3e996983ef0bd8c8ff300ba2f37af88c9aee43ef8d955eff8bafc9d54017b465e786754611c8c4baba796ebbfd0ad5bc755f5b05ab92fa6e2b42bdadf'
'b8823586fead21247c8208bd842fb5cd32d4cb3ca2a02339ce2baf2c9cb938dfcb8eb7b24c95225ae625cd0ee59fbbd8293393f3ed1a4b45d13ba3f9f62a791f'
'b4aa6d6faf2b879d14310141dd92dc7144ff5b45a1075ee54451427029a01812a25f8249540d6bc9f0e9bbe6efc4d8913cc90d4c9546566b19fd1f605cf1a883')
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"
}
|