WolframScript on Manjaro Linux
The mathematica PKGBUILD in the AUR requires the installer to be placed in the same directory as the PKGBUILD:
## To build this package you need to place the mathematica-installer into your
## startdir If you don't own the installer you can download a trial version at
## http://www.wolfram.com/mathematica/trial
Alternatively, you can extract the data archive from the .deb file and then extract the WolframScript files from that (this is what the PKGBUILD does):
bsdtar -xf wolframscript_1.2.0+2019040701_amd64.deb data.tar.xz
tar -xf data.tar.xz
Then copy the files to the appropriate place on your filesystem.
I tested the following method in arch linux. It works with Mathematica 12.2 + Arch Linux 5.10.13-arch1-2.
To get around the problem, try AUR helper. I use yay.
First, find out the build directory of yay.
yay -P -g
The output includes "buildDir":"/home/myname/.cache/yay"
Then download Mathematica_12.2.0_LINUX.sh from Wolfram portal. Put the file under "/home/myname/.cache/yay/mathematica".
Finally, run
yay -S mathematica
If you failed at the first try, try a second time.