Update to Wolfram 14.1.
diff --git a/PKGBUILD b/PKGBUILD
index 5440a78..b93c516 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
# Contributor: Maxim Mikityanskiy <maxtram95@gmail.com>
pkgname=mathematica
-pkgver=14.0.0
+pkgver=14.1.0
_pkgver=${pkgver%.[0-9]}
pkgrel=1
pkgdesc="A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing with offline documentation."
@@ -26,6 +26,7 @@ optdepends=(
'alsa-lib'
'atk'
'cairo'
+ 'inetutils'
'ffmpeg'
'fontconfig'
'gdk-pixbuf2'
@@ -82,11 +83,11 @@ _source_url=$(
| sed -E 's/.*href="([^"]+)".*/\1/'
)
source=(
- "Mathematica_${pkgver}_BNDL_LINUX.sh::${_source_url}"
+ "Wolfram_${pkgver}_LIN_Bndl.sh::${_source_url}"
"remove-xdg-scripts.patch"
)
-md5sums=('2e9479b7622ea8d09d465ffc53a753c4'
- '14df424ec93fad057604378c2b5c24c2')
+md5sums=('36eedf29f9090d95f636ac0cd15471e5'
+ '3d4abbbadd766f19bac666b8750eec7a')
options=("!strip")
## To build this package you need to place the mathematica-installer into your
@@ -112,19 +113,20 @@ prepare() {
fi
msg2 "Extracting Mathematica installer..."
- sh "${srcdir}/Mathematica_${pkgver}_BNDL_LINUX.sh" \
+ rm -rf ${srcdir}/bundle/
+ sh "${srcdir}/Wolfram_${pkgver}_LIN_Bndl.sh" \
--keep \
--target "${srcdir}/bundle" \
-- \
-help >/dev/null
-
- patch -p1 -d "${srcdir}/bundle" < "${srcdir}/remove-xdg-scripts.patch"
+ msg2 "Patching Mathematica installer..."
+ patch -p 1 -d "${srcdir}/bundle/" < "${srcdir}/remove-xdg-scripts.patch"
}
package() {
msg2 "Running Mathematica installer"
# https://reference.wolfram.com/language/tutorial/InstallingMathematica.html#650929293
- sh "${srcdir}/bundle/Unix/Installer/MathInstaller" \
+ sh "${srcdir}/bundle/Unix/Installer/WolframInstaller" \
-execdir="${pkgdir}/usr/bin" \
-targetdir="${pkgdir}/opt/Mathematica" \
-auto
@@ -148,15 +150,15 @@ package() {
ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript
cd ${pkgdir}/usr/bin
rm *
- ln -s /opt/Mathematica/Executables/math
- ln -s /opt/Mathematica/Executables/mathematica
- ln -s /opt/Mathematica/Executables/Mathematica
- ln -s /opt/Mathematica/Executables/MathKernel
- ln -s /opt/Mathematica/Executables/mcc
- ln -s /opt/Mathematica/Executables/wolfram
- ln -s /opt/Mathematica/Executables/WolframKernel
- ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/ELProver
- ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript
+ ln -sf /opt/Mathematica/Executables/math
+ ln -sf /opt/Mathematica/Executables/MathKernel
+ ln -sf /opt/Mathematica/Executables/WolframNB
+ ln -sf /opt/Mathematica/Executables/wolframscript
+ ln -sf /opt/Mathematica/Executables/mcc
+ ln -sf /opt/Mathematica/Executables/wolfram
+ ln -sf /opt/Mathematica/Executables/WolframKernel
+ ln -sf /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/ELProver
+ ln -sf /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript
msg2 "Setting up WolframScript"
mkdir -p ${srcdir}/WolframScript
@@ -172,9 +174,9 @@ package() {
${pkgdir}/usr/share/desktop-directories \
${pkgdir}/usr/share/mime/packages
cd ${pkgdir}/opt/Mathematica/SystemFiles/Installation
- desktopFile="com.wolfram.Mathematica.${_pkgver}.desktop"
- sed -Ei "s|^(\s*TryExec=).*|\1/usr/bin/Mathematica|g" $desktopFile
- sed -Ei "s|^(\s*Exec=).*|\1/usr/bin/Mathematica --name com.wolfram.mathematica.${_pkgver} %F|g" $desktopFile
+ desktopFile="com.wolfram.Wolfram.${_pkgver}.desktop"
+ sed -Ei "s|^(\s*TryExec=).*|\1/usr/bin/WolframNB|g" $desktopFile
+ sed -Ei "s|^(\s*Exec=).*|\1/usr/bin/WolframNB --name com.wolfram.mathematica.${_pkgver} %F|g" $desktopFile
printf 'Categories=Science;Education;Languages;ArtificialIntelligence;Astronomy;Biology;Chemistry;ComputerScience;DataVisualization;Geography;ImageProcessing;Math;NumericalAnalysis;MedicalSoftware;Physics;ParallelComputer;\n' >> $desktopFile
cp $desktopFile ${pkgdir}/usr/share/applications/
cp *.directory ${pkgdir}/usr/share/desktop-directories/
Pinned Comments
JP-Ellis commented on 2024-01-15 22:27 (UTC)
The update to v14.0.0 has been uploaded. A list of new features can be found in Wolfram's blog.
If there are any issues with this PKGBUILD, please let me know in a commment below.
JP-Ellis commented on 2022-10-08 00:22 (UTC) (edited on 2023-08-19 12:56 (UTC) by JP-Ellis)
Wolfram offers two bundles for Mathematica: one with offline docs included, and one which relies on online docs. I have created corresponding version of the Mathematica package in the AUR:
mathematica
: As this package has historically always included offline docs, it will continue to do so now. As of 13.1.0, the package takes up around 14.1GiB with all documentation.mathematica-light
: For those people who want a small package and/or want to use online docs, I have created this package which uses Wolfram's online-docs bundling of Mathematica. As of 13.3, the light version takes up around 7.2GiB.