network/thorium-browser: Updated for version 122.0.6261.132.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Martin Rodriguez 2024-03-20 19:52:28 +07:00 committed by Willy Sudiarto Raharjo
parent f598bd1cf8
commit 45724ae6a4
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 21 additions and 18 deletions

View file

@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=thorium-browser
VERSION=${VERSION:-117.0.5938.157}
VERSION=${VERSION:-122.0.6261.132}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -34,7 +34,7 @@ if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
*) ARCH=$( uname -m ) ;;
esac
fi
@ -56,28 +56,31 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
ar p $CWD/${PRGNAM}_${VERSION}_${DEBARCH}.deb data.tar.xz | tar xJv || exit 1
ar p $CWD/${PRGNAM}_${VERSION}_$DEBARCH.deb data.tar.xz | tar xJv || exit 1
cd ..
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Make sure top-level perms are correct:
chmod 0755 .
# This needs to be setuid root:
chmod 4711 opt/chromium.org/thorium/chrome-sandbox
chmod 4711 $PKG/opt/chromium.org/thorium/chrome-sandbox
# The cron job is for Debian/Ubuntu only:
rm -rf etc
rm -rf $PKG/etc
# Link to the standard Mozilla library names:
sed -i 's,libnss3.so.1d,libnss3.so\x00\x00\x00,g;
s,libnssutil3.so.1d,libnssutil3.so\x00\x00\x00,g;
s,libsmime3.so.1d,libsmime3.so\x00\x00\x00,g;
s,libssl3.so.1d,libssl3.so\x00\x00\x00,g;
s,libplds4.so.0d,libplds4.so\x00\x00\x00,g;
s,libplc4.so.0d,libplc4.so\x00\x00\x00,g;
s,libnspr4.so.0d,libnspr4.so\x00\x00\x00,g;' opt/chromium.org/thorium/thorium
# Strip binaries and libraries
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# --mandir=/usr/man:
mv $PKG/usr/share/man $PKG/usr/man
# Install a .desktop launcher:

View file

@ -1,10 +1,10 @@
PRGNAM="thorium-browser"
VERSION="117.0.5938.157"
VERSION="122.0.6261.132"
HOMEPAGE="https://thorium.rocks/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="https://github.com/Alex313031/thorium/releases/download/M117.0.5938.157/thorium-browser_117.0.5938.157_amd64.deb"
MD5SUM_x86_64="2688d9067f05b0f253b0888225ebe70b"
DOWNLOAD_x86_64="https://github.com/Alex313031/thorium/releases/download/M122.0.6261.132/thorium-browser_122.0.6261.132_amd64.deb"
MD5SUM_x86_64="5e02eb86b7657c1c592ff242f1a8cf12"
REQUIRES=""
MAINTAINER="Martin Rodriguez"
EMAIL="slackmart@gmail.com"