blob: b57934a3943fa2ee7cda5ca4d18c74bda18877b9 (
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
46
47
48
49
50
51
|
# Contributor: Caleb Maclennan <caleb@alerque.com>
# Contributor: Jacob Mischka <jacob@mischka.me>
# Maintainer: Manuel Mazzuola <origin.of@gmail.com>
# Maintainer: whezzel <whezzel at gmail dot com>
pkgname=brave-beta-bin
pkgver=1.3.98
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=('custom')
depends=('gtk3' 'nss' 'alsa-lib' 'libxss' 'ttf-font')
optdepends=('cups: Printer support'
'libgnome-keyring: Enable GNOME keyring support'
'pepper-flash: Adobe Flash support')
provides=("${pkgname}" 'brave-beta-browser')
conflicts=("${pkgname}" 'brave-bin' 'brave-dev-bin')
source=("$pkgname-$pkgver.zip::https://github.com/brave/brave-browser/releases/download/v${pkgver}/brave-v${pkgver}-linux-x64.zip"
"LICENSE::https://raw.githubusercontent.com/brave/brave-browser/master/LICENSE"
"$pkgname.sh"
"$pkgname.desktop"
"braveAbout.png")
options=(!strip)
sha512sums=('baa0c15a33c90b20fafce02c5f80ba56e0806869d0693955ac81b046b088d989944e711a0d1b7bb474000a32cb21a7157fdc29823763079def1cbeb46a875412'
'239dbc27d68e0a03e92c68fb746602d8183084c9624a533fe92a991b8a4658d5154c901ff64826992eabcf89a5b52cb32f9cf29fd25a42bef2b5d3932010d806'
'dee61e98ab61ebe78f3d9a55f33150efdd851644113970afada5758f2fceb3329e9f1e49438304e03358242e893ea50e0d2afb6a18dac3f4c5b26f04cf8e508c'
'44809972e3980856494659b15d033b02c63dd1743293dc079d90d022904160532bbf82e70686dea20a46431981bf147cc5392ecc483c61378908b4a92a3d7515'
'd7bef52e336bd908d24bf3a084a1fc480831d27a3c80af4c31872465b6a0ce39bdf298e620ae9865526c974465807559cc75610b835e60b4358f65a8a8ff159e')
noextract=("$pkgname-$pkgver.zip")
prepare() {
mkdir -p brave
cat $pkgname-$pkgver.zip | bsdtar -xf- -C brave
chmod +x brave/brave
}
_bsdtardir="brave"
package() {
install -d -m0755 "$pkgdir/usr/lib"
cp -a --reflink=auto $_bsdtardir "$pkgdir/usr/lib/$pkgname"
install -Dm0755 "$pkgname.sh" "$pkgdir/usr/bin/brave-beta"
install -Dm0644 -t "$pkgdir/usr/share/applications" "$pkgname.desktop"
install -Dm0644 "braveAbout.png" "$pkgdir/usr/share/pixmaps/brave-beta.png"
install -Dm0664 -t "$pkgdir/usr/share/licenses/$pkgname" "LICENSE"
mv "$pkgdir/usr/lib/$pkgname/"{LICENSE,LICENSES.chromium.html} "$pkgdir/usr/share/licenses/$pkgname"
ln -s /usr/lib/PepperFlash "$pkgdir/usr/lib/pepperflashplugin-nonfree"
}
|