Update brave to 1.44.105
hanzala123 opened this issue · 1 comments
hanzala123 commented
The brave-bin package has been flagged out of date for a while. I was able to tweak the PKGBUILD to build the latest brave-bin. I am new to this thus i am not sure how exactly to contribute to AUR. I only had to make changes to the PKGBUILD file. I am on EndeavousOS. Here is the new PKGBUILD file.
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: José Miguel Sarasola <jmsaraur@gmail.com>
# Contributor: Như Bảo Trương <28810481+nhubaotruong@users.noreply.github.com>
# Contributor: Andrés Rodríguez <hello@andres.codes>
# Contributor: Jacob Mischka <jacob@mischka.me>
# Contributor: Manuel Mazzuola <origin.of@gmail.com>
# Contributor: Simón Oroño <simonorono@protonmail.com>
# Contributor: now-im <now im 627 @ gmail . com>
# Contributor: Giusy Digital <kurmikon at libero dot it>
# Version notes:
# `curl https://brave-browser-downloads.s3.brave.com/latest/release.version`
pkgname=brave-bin
pkgver=1.44.105
pkgrel=1
epoch=1
pkgdesc='Web browser that blocks ads and trackers by default (binary release)'
arch=(x86_64)
url=https://brave.com
license=(MPL2 BSD custom:chromium)
depends=(alsa-lib
gtk3
libxss
nss
ttf-font)
optdepends=('cups: Printer support'
'libgnome-keyring: Enable GNOME keyring support'
'libnotify: Native notification support')
provides=("${pkgname%-bin}=$pkgver" 'brave-browser')
conflicts=("${pkgname%-bin}")
options=(!strip)
source=("$pkgname-$pkgver.zip::https://github.com/brave/brave-browser/releases/download/v$pkgver/brave-browser-$pkgver-linux-amd64.zip"
"$pkgname.sh"
'brave-browser.desktop')
noextract=("$pkgname-$pkgver.zip")
sha256sums=('72776609db8a7699f295bc4ed8bc6d0d56725f6bffe35ed84ec93d57e4264087'
'ba7d57a3328c68e6a78e49506af0e238936e823b2f463e8087c20fcf4300232a'
'c07276b69c7304981525ecb022f92daf7ae125a4fb05ac3442157b50826e257a')
prepare() {
mkdir -p brave
bsdtar -xf "$pkgname-$pkgver.zip" -C brave
chmod +x brave/brave
}
package() {
install -dm0755 "$pkgdir/usr/lib"
cp -a brave "$pkgdir/usr/lib/$pkgname"
# allow firejail users to get the suid sandbox working
chmod 4755 "$pkgdir/usr/lib/brave-bin/chrome-sandbox"
install -Dm0755 "$pkgname.sh" "$pkgdir/usr/bin/brave"
install -Dm0644 -t "$pkgdir/usr/share/applications/" "brave-browser.desktop"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" brave/LICENSE
pushd "$pkgdir/usr/"
for size in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do
install -Dm0644 "lib/$pkgname/product_logo_${size/x*/}.png" \
"share/icons/hicolor/$size/apps/brave-desktop.png"
done
}
alerque commented
Thank your for the contribution. I'm a bit late getting to this because I was on the road for a month about the time this was sent and am still trying to catch up on FOSS stuff. The contribution looks good and I would have included it, but it looks like another AUR user alosarjos
who co-maintains the brave-bin package already bumped this to an even newer version that the one in your PKGBUILD.