mirror of
https://aur.archlinux.org/brave-bin.git
synced 2025-12-10 19:04:00 +01:00
Apply patch to brave-bin.sh
This commit is contained in:
4
.SRCINFO
4
.SRCINFO
@@ -1,7 +1,7 @@
|
|||||||
pkgbase = brave-bin
|
pkgbase = brave-bin
|
||||||
pkgdesc = Web browser that blocks ads and trackers by default (binary release)
|
pkgdesc = Web browser that blocks ads and trackers by default (binary release)
|
||||||
pkgver = 1.39.111
|
pkgver = 1.39.111
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
epoch = 1
|
epoch = 1
|
||||||
url = https://brave.com
|
url = https://brave.com
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
@@ -25,7 +25,7 @@ pkgbase = brave-bin
|
|||||||
source = brave-bin.sh
|
source = brave-bin.sh
|
||||||
source = brave-browser.desktop
|
source = brave-browser.desktop
|
||||||
sha256sums = 88af1bebea08911530925fdebc0cd408d1b2ec1aa3fbb067b26117c9cd8f64f5
|
sha256sums = 88af1bebea08911530925fdebc0cd408d1b2ec1aa3fbb067b26117c9cd8f64f5
|
||||||
sha256sums = ba7d57a3328c68e6a78e49506af0e238936e823b2f463e8087c20fcf4300232a
|
sha256sums = fa1ebc2e4000b724b65efc0ca79665d728371e1d5fd7a02a63b5806412904e27
|
||||||
sha256sums = c07276b69c7304981525ecb022f92daf7ae125a4fb05ac3442157b50826e257a
|
sha256sums = c07276b69c7304981525ecb022f92daf7ae125a4fb05ac3442157b50826e257a
|
||||||
|
|
||||||
pkgname = brave-bin
|
pkgname = brave-bin
|
||||||
|
|||||||
4
PKGBUILD
4
PKGBUILD
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
pkgname=brave-bin
|
pkgname=brave-bin
|
||||||
pkgver=1.39.111
|
pkgver=1.39.111
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc='Web browser that blocks ads and trackers by default (binary release)'
|
pkgdesc='Web browser that blocks ads and trackers by default (binary release)'
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
@@ -35,7 +35,7 @@ source=("$pkgname-$pkgver.zip::https://github.com/brave/brave-browser/releases/d
|
|||||||
'brave-browser.desktop')
|
'brave-browser.desktop')
|
||||||
noextract=("$pkgname-$pkgver.zip")
|
noextract=("$pkgname-$pkgver.zip")
|
||||||
sha256sums=('88af1bebea08911530925fdebc0cd408d1b2ec1aa3fbb067b26117c9cd8f64f5'
|
sha256sums=('88af1bebea08911530925fdebc0cd408d1b2ec1aa3fbb067b26117c9cd8f64f5'
|
||||||
'ba7d57a3328c68e6a78e49506af0e238936e823b2f463e8087c20fcf4300232a'
|
'fa1ebc2e4000b724b65efc0ca79665d728371e1d5fd7a02a63b5806412904e27'
|
||||||
'c07276b69c7304981525ecb022f92daf7ae125a4fb05ac3442157b50826e257a')
|
'c07276b69c7304981525ecb022f92daf7ae125a4fb05ac3442157b50826e257a')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|||||||
|
|
||||||
# Allow users to override command-line options
|
# Allow users to override command-line options
|
||||||
USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf"
|
USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf"
|
||||||
if [[ -f $USER_FLAGS_FILE ]]; then
|
if [[ -f "$USER_FLAGS_FILE" ]]; then
|
||||||
USER_FLAGS="$(cat $USER_FLAGS_FILE | sed 's/#.*//')"
|
mapfile -t USER_FLAGS < <(sed 's/#.*//g' "$USER_FLAGS_FILE")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export CHROME_VERSION_EXTRA="stable"
|
export CHROME_VERSION_EXTRA="stable"
|
||||||
|
|
||||||
exec /usr/lib/brave-bin/brave "$@" $USER_FLAGS
|
exec /usr/lib/brave-bin/brave "$@" "${USER_FLAGS[@]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user