update scripts

This commit is contained in:
xiota 2024-01-11 18:19:34 -08:00
parent 8a70a3d735
commit 525075ac08
4 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@ pkgbase = thorium-browser-bin
source = https://github.com/Alex313031/Thorium/releases/download/M119.0.6045.214/thorium-browser_119.0.6045.214_amd64.deb
source = thorium-browser.sh
sha256sums = SKIP
sha256sums = 1e76ad0a1d9a8d5fa3aa4b049e2ef52de7c3c7745204c70f72fc9218eb38a738
sha256sums = 8c6cd4c85389d9642afce9549c750d7b27ab9e2f4032a05fa03d02799cd8ac9b
pkgname = thorium-browser-bin
depends = alsa-lib

View file

@ -45,7 +45,7 @@ _main_package() {
)
sha256sums=(
'SKIP'
'1e76ad0a1d9a8d5fa3aa4b049e2ef52de7c3c7745204c70f72fc9218eb38a738'
'8c6cd4c85389d9642afce9549c750d7b27ab9e2f4032a05fa03d02799cd8ac9b'
)
pkgver() {

View file

@ -26,11 +26,11 @@ post_install() {
if /usr/lib/ld-linux-x86-64.so.2 --help | grep -qsE '^\s+x86-64-v3.*supported.*$' ; then
note1 "Custom flags should be put directly in: ~/.config/thorium-flags.conf"
note2 "The launcher is called: 'thorium-browser'"
elif /usr/lib/ld-linux-x86-64.so.2 --help | grep -qsE '^\s+x86-64-v2.*supported.*$' ; then
note1 "Your processor supports x86-64-v2, but not x86-64-v3."
elif grep -qE '\bpni\b' /proc/cpuinfo ; then
note1 "Your processor does not support x86-64-v3 instructions."
note2 "You may want to install thorium-browser-sse3-bin instead."
else
note1 "Your processor does not support x86-64-v2 or x86-64-v3."
note1 "Your processor does not support SSE3 instructions."
note2 "thorium-browser may not work on your computer."
fi
}

View file

@ -4,13 +4,13 @@
if /usr/lib/ld-linux-x86-64.so.2 --help | grep -qsE '^\s+x86-64-v3.*supported.*$' ; then
_message=''
_message+=$'The fastest browser on Earth.'
elif /usr/lib/ld-linux-x86-64.so.2 --help | grep -qsE '^\s+x86-64-v2.*supported.*$' ; then
elif grep -qE '\bpni\b' /proc/cpuinfo ; then
_message=''
_message+=$'Your processor supports x86-64-v2, but not x86-64-v3.\n'
_message+=$'Your processor does not support x86-64-v3 instructions.\n'
_message+=$'You may want to use thorium-browser-sse3-bin.'
else
_message=''
_message+=$'Your processor does not support x86-64-v2 or x86-64-v3.\n'
_message+=$'Your processor does not support SSE3 instructions.\n'
_message+=$'thorium-browser may not work on your computer.'
fi