They decided to change the way the software is shipped: now you have to download the binary and the documentation as separate files and install them separately.
I took the liberty of adding a patch. You can use it as a starting point, I don't think it's perfect, but it works (I built it in a chroot and installed it just now)
diff --git a/.SRCINFO b/.SRCINFO
index 6a72d0d..cae6dbc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mathematica
pkgdesc = A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing.
- pkgver = 13.0.1
+ pkgver = 13.1.0
pkgrel = 1
url = http://www.wolfram.com/mathematica/
arch = x86_64
@@ -56,7 +56,9 @@ pkgbase = mathematica
optdepends = tesseract
optdepends = zlib
options = !strip
- source = local://Mathematica_13.0.1_BNDL_LINUX.sh
- md5sums = cdeae74ad72420c1dea5027f7f8c569e
+ source = local://Mathematica_13.1.0_LINUX.sh
+ source = local://WLDocs_13.1.0_LINUX.sh
+ md5sums = 43fee918e0520250daab1d962fb3a594
+ md5sums = b041ba25be3e8ec517cd845bf1f338da
pkgname = mathematica
diff --git a/.gitignore b/.gitignore
index 0e5f346..009aae3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
Mathematica*.sh
+WLDocs*.sh
*.pkg.tar
*.pkg.tar.xz
-*.pkg.tar.zst
\ No newline at end of file
+*.pkg.tar.zst
diff --git a/PKGBUILD b/PKGBUILD
index e071fd0..534eca5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
# Contributor: teratomata <teratomat@gmail.com>
pkgname=mathematica
-pkgver=13.0.1
+pkgver=13.1.0
pkgrel=1
pkgdesc="A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing."
arch=('x86_64')
@@ -70,8 +70,10 @@ optdepends=(
'tesseract'
'zlib'
)
-source=("local://Mathematica_${pkgver}_BNDL_LINUX.sh")
-md5sums=('cdeae74ad72420c1dea5027f7f8c569e')
+source=("local://Mathematica_${pkgver}_LINUX.sh"
+ "local://WLDocs_${pkgver}_LINUX.sh")
+md5sums=('43fee918e0520250daab1d962fb3a594'
+ 'b041ba25be3e8ec517cd845bf1f338da')
options=("!strip")
## To build this package you need to place the mathematica-installer into your
@@ -96,19 +98,40 @@ prepare() {
exit 1
fi
- chmod +x ${srcdir}/Mathematica_${pkgver}_BNDL_LINUX.sh
+ chmod +x ${srcdir}/Mathematica_${pkgver}_LINUX.sh
+ chmod +x ${srcdir}/WLDocs_${pkgver}_LINUX.sh
}
package() {
+
+ # The installer calls hostname, which is not necessarily available
+ hostname() { echo '$HOSTNAME'; }
+ export -f hostname
+
msg2 "Running Mathematica installer"
# https://reference.wolfram.com/language/tutorial/InstallingMathematica.html#650929293
- sh ${srcdir}/Mathematica_${pkgver}_BNDL_LINUX.sh -- \
+ sh ${srcdir}/Mathematica_${pkgver}_LINUX.sh -- \
-execdir=${pkgdir}/usr/bin \
-targetdir=${pkgdir}/opt/Mathematica \
-auto
+
msg2 "Errors related to 'xdg-icon-resource' and 'xdg-desktop-menu' are to be expected during Mathematica's installation."
rm ${pkgdir}/opt/Mathematica/InstallErrors
+ ## The documentation takes up the majority of the disk space (7.8G+). If you
+ ## do not wish to have the documentation installed, comment out the following
+ sh ${srcdir}/WLDocs_${pkgver}_LINUX.sh -- \
+ -execdir=${pkgdir}/usr/bin \
+ -targetdir=${pkgdir}/opt/Mathematica_docs \
+ -auto
+
+ # Merge contents of Mathematica_docs with Mathematica
+ rm -r ${pkgdir}/opt/Mathematica/Documentation/English/{SearchIndex,System}
+ mv ${pkgdir}/opt/Mathematica_docs/Documentation/English/* ${pkgdir}/opt/Mathematica/Documentation/English/
+ rm -r ${pkgdir}/opt/Mathematica_docs/
+ ## until here
+
+
msg2 "Fixing symbolic links"
cd ${pkgdir}/opt/Mathematica/Executables
rm wolframscript
@@ -169,10 +192,4 @@ package() {
msg2 "Fixing file permissions"
chmod go-w -R ${pkgdir}/*
-
- ## The documentation takes up the majority of the disk space (6.8G+). If you
- ## do not wish to have the documentation installed, uncomment the following
- ## lines.
- # msg2 "Removing documentation"
- # rm -rf "${pkgdir}/opt/Mathematica/Documentation"
}
Pinned Comments
marmis commented on 2024-12-24 03:37 (UTC)
mathematica
andmathematica-light
have been updated to 14.1. Matematica is being rebranded to WolframApp or just Wolfram. Because of that, you might have to update your current configuration according to Upgrading from Mathematica to Wolfram:$UserBaseDirectory
is now~/.Wolfram
(you may need tomv ~/.Mathematica ~/.Wolfram
)MATHINIT
is nowWOLFRAMNB_INIT
(for additional arguments to Wolfram)MATHEMATICA_BASE
is nowWOLFRAM_BASE
(for custom$BaseDirectory
)MATHEMATICA_USERBASE
is nowWOLFRAM_USERBASE
(for custom$UserBaseDirectory
)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.