From 5342fde6b24f3ffd0c3c43f449e99ed1f55c2613 Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Mon, 5 Sep 2022 13:05:12 +0200 Subject: [PATCH] brave-browser: release 1.43.89 - quickfix binary release --- brave-browser-1.43.89-0.build.sh | 94 ++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100755 brave-browser-1.43.89-0.build.sh diff --git a/brave-browser-1.43.89-0.build.sh b/brave-browser-1.43.89-0.build.sh new file mode 100755 index 0000000..f4b92f2 --- /dev/null +++ b/brave-browser-1.43.89-0.build.sh @@ -0,0 +1,94 @@ +#!/bin/bash +# +# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=brave +# git clone https://aur.archlinux.org/brave-bin.git + +PKG=brave-browser +VERSION=1.43.89 +BUILD=0 + +# cd /home/wwwutz/git/pkg-scripts/ +# tools/build.sh --bind /dev/shm brave-browser-1.43.89-0.build.sh +# cmirror /dev/shm/pkg_bindmnt /package/pkg/brave-browser-1.43.89-0 --band --delete --exclude ./build + +PREFIX=/pkg/$PKG-$VERSION-$BUILD + +set -xev +umask 022 + +BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.$USER.build.tmp +test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR ) +mkdir -p $BUILD_TMPDIR/home +export TMPDIR=$BUILD_TMPDIR +export HOME=$BUILD_TMPDIR/home + +mkdir -p $PREFIX +cat >$PREFIX/profile <>${HOME}/.wgetrc <<'_EOW_' +http_proxy = beehive:3128 +https_proxy = beehive:3128 +ftp_proxy = beehive:3128 +check-certificate = quiet +_EOW_ +# +# rm ${HOME}/.wgetrc +# + +BUILDDIR=$PREFIX/build + +set -ex + +mkdir -p $BUILDDIR +cd $BUILDDIR + +# SRCURL[0]="https://github.com/brave/brave-browser/releases/download/v1.43.89/brave-browser-1.43.89-linux-amd64.zip" +SRCURL[0]="https://beehive.molgen.mpg.de/a8ad355ca8bd5783dfb46a8e8920add7/brave-browser-1.43.89-linux-amd64.zip" +SRCURL[0]="/src/mariux/md5repo/a8ad355ca8bd5783dfb46a8e8920add7/brave-browser-1.43.89-linux-amd64.zip" + +if [ ! -d brave ]; then + mkdir brave + bsdtar -xf ${SRCURL[0]} -C brave + chmod 755 brave/brave +fi + +pwd + +install -dm0755 "${PREFIX}/bin" +install -dm0755 "${PREFIX}/lib" + +cp -a brave ${PREFIX}/lib + +# https://support.brave.com/hc/en-us/articles/360044860011-How-Do-I-Use-Command-Line-Flags-in-Brave- + +cat >${PREFIX}/bin/brave <<__EOS__ +#!/bin/bash +XDG_CONFIG_HOME="\${XDG_CONFIG_HOME:-\$HOME/.config}" + +# Allow users to override command-line options +USER_FLAGS_FILE="\$XDG_CONFIG_HOME/brave-flags.conf" +if [[ -f \$USER_FLAGS_FILE ]]; then + USER_FLAGS="\$(cat \$USER_FLAGS_FILE | sed 's/#.*//')" +fi + +export CHROME_VERSION_EXTRA="stable" + +exec ${PREFIX}/lib/brave/brave \ +--enable-logging \ +--v=0 \ +--disable-brave-update --disable-chrome-google-url-tracking-client \ +\$@ +__EOS__ + +chmod 755 ${PREFIX}/bin/brave + +for size in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do + install -Dm0644 "brave/product_logo_${size/x*/}.png" \ + "${PREFIX}/share/icons/hicolor/$size/apps/brave-desktop.png" +done