blob: 36acfd962db6af2fe759d994c255a0744bc748f2 (
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
|
# Maintainer: Jacob Mischka <jacob@mischka.me>
# Comaintainer: Pedro A. López-Valencia <https://aur.archlinux.org/user/vorbote>
pkgname=brave
pkgver=0.13.5
pkgrel=3
pkgdesc='Web browser that blocks ads and trackers by default.'
arch=('x86_64')
url='https://www.brave.com/'
license=('custom')
depends=('gtk2' 'nss' 'alsa-lib' 'gconf' 'libgnome-keyring' 'libxtst' 'libxss' 'ttf-font')
makedepends=('npm' 'git')
optdepends=('cups: Printer support'
'pepper-flash: Adobe Flash support')
provides=('brave-browser')
source=("https://github.com/brave/browser-laptop/archive/v"$pkgver"dev.tar.gz"
'brave'
'brave.desktop')
sha512sums=('b3bc97f99a838fc90ebbb7d12f64da426a13b8d68e5fe1aac9824a3cfeff681bc0de96d10b7be99d6b86004accae3b045675c096a6b764e726ae01d4ffab186f'
'4302366877e5d7c3862c9223db4afd58e4323f1c0f763e4ecc2d648945972bbc5fe64752de415ea3b6a07a28df3cf4149d4e98e8604e3d1496ffaa3c9d9f203d'
'337de1b406c89418fb27a49b1a9fa4cfef94eefbf2901bc60f5ddac0b9094924e940fcbcb233cbbeff2742e6b3c26cc6dbdb75cd29798eff8c8be92fce0df2e7')
build() {
cd "$srcdir"/browser-laptop-"$pkgver"dev
npm install
CHANNEL=dev npm run build-package
}
package() {
cd "$srcdir"/browser-laptop-"$pkgver"dev
install -dm0755 "$pkgdir"/usr/lib
cp -a --reflink=auto Brave-linux-x64 "$pkgdir"/usr/lib/brave
install -Dm0644 "$srcdir"/brave.desktop "$pkgdir"/usr/share/applications/brave.desktop
install -Dm0755 "$srcdir"/brave "$pkgdir"/usr/bin/brave
install -Dm0644 res/app.png "$pkgdir"/usr/share/pixmaps/brave.png
install -Dm0644 LICENSE.txt "$pkgdir"/usr/share/licenses/brave/MPL2
mv "$pkgdir"/usr/lib/brave/{LICENSE,LICENSES.chromium.html} "$pkgdir"/usr/share/licenses/brave/
ln -s /usr/lib/PepperFlash "$pkgdir"/usr/lib/pepperflashplugin-nonfree
}
|