-
-
Save duhdugg/3cb48d09b5f3c31adbc06c55efb466c8 to your computer and use it in GitHub Desktop.
brave-bin-1:1.27.109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Caleb Maclennan <caleb@alerque.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` | |
# | |
# 1.27.108 and 1.27.109 are known broken on systems using systemd-resolved | |
# You can use NetworkManager, dhclient, or dhcpcd with systemd-resolved disabled and not be affected by this bug. | |
pkgname=brave-bin | |
pkgver=1.27.109 | |
pkgrel=0 | |
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' | |
'logo.png') | |
noextract=("$pkgname-$pkgver.zip") | |
sha256sums=('af2a2423ed233431162211521046373093cf678711e94a985f48c9c46181731a' | |
'ba7d57a3328c68e6a78e49506af0e238936e823b2f463e8087c20fcf4300232a' | |
'c07276b69c7304981525ecb022f92daf7ae125a4fb05ac3442157b50826e257a' | |
'4a585cb8740f4c9ba267f0df19d894eb9fae1b9a6af4a3e44737b7d0bcbc104a') | |
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 "logo.png" "$pkgdir/usr/share/pixmaps/brave-desktop.png" | |
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" brave/LICENSE | |
rm "$pkgdir/usr/lib/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment