Package Details: mathematica 14.1.0-1

Git Clone URL: https://aur.archlinux.org/mathematica.git (read-only, click to copy)
Package Base: mathematica
Description: A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing with offline documentation.
Upstream URL: http://www.wolfram.com/mathematica/
Licenses: LicenseRef-WolframMathematicaLicenseAgreement
Submitter: Feanor12
Maintainer: JP-Ellis (marmis)
Last Packager: marmis
Votes: 80
Popularity: 0.67
First Submitted: 2011-03-03 21:27 (UTC)
Last Updated: 2024-12-24 03:20 (UTC)

Dependencies (53)

Required by (1)

Sources (2)

Pinned Comments

marmis commented on 2024-12-24 03:37 (UTC)

mathematica and mathematica-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:

  • The default $UserBaseDirectory is now ~/.Wolfram (you may need to mv ~/.Mathematica ~/.Wolfram)
  • MATHINIT is now WOLFRAMNB_INIT (for additional arguments to Wolfram)
  • MATHEMATICA_BASE is now WOLFRAM_BASE (for custom $BaseDirectory)
  • MATHEMATICA_USERBASE is now WOLFRAM_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.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 37 Next › Last »

JP-Ellis commented on 2023-08-19 12:55 (UTC)

@leo980 Thanks for the bug report. I tested the mathematica-light package, and (perhaps incorrectly) assumed that the full package would work similarly but did not test it. I would recommend you switch to using mathematica-light until I find a workaround with this package's installation.

leo980 commented on 2023-08-19 06:43 (UTC)

Installation of documentation failed with 13.3.1-1

Seems we need to somehow prepend $pkgdir prefix to /usr/share/Wolfram/Documentation/13.3/en-us...

But MathInstaller does not provide a argument for it ...

--------------------------------------------------------------------------------
          Wolfram Language 13.3 English Documentation 13.3 Installer 
--------------------------------------------------------------------------------

Copyright (c) 1988-2023 Wolfram Research, Inc. All rights reserved.

WARNING: Wolfram Language 13.3 English Documentation is protected by copyright
law and international treaties. Unauthorized reproduction or distribution
may result in severe civil and criminal penalties and will be prosecuted to
the maximum extent possible under law.

All users of this computer will be able to use this software.

Y


Error: Cannot create directory /usr/share/Wolfram/Documentation/13.3/en-us.

You may need to be logged in as root to continue with this installation.




Installation failed. See /tmp/InstallErrors-1637.

vlasiuk commented on 2023-07-04 16:13 (UTC)

For 13.3.0,

+md5sums=('f9f15472c52775a0fa3b9b48520efcca')

qtmax commented on 2023-02-24 11:56 (UTC)

@JP-Ellis, please pull the version bump along with some fixes from:

https://bitbucket.org/qt-max/mathematica/commits/

vlasiuk commented on 2022-12-17 22:57 (UTC) (edited on 2022-12-17 22:57 (UTC) by vlasiuk)

For 13.2 the only changes in PKGBUILD are

-pkgver=13.1.0
+pkgver=13.2.0
-md5sums=('23e6c72f6b948cefc4f588ec563af488')
+md5sums=('05a0eaaafef2e4478454cb28e0ab4bc8')

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.

mane.andrea commented on 2022-10-04 12:12 (UTC)

@JP-Ellis If you don't have time to maintain this package, I would be happy to take over in your stead. Let me know what you think.

Kamien commented on 2022-10-02 00:10 (UTC)

Hi, @JP-Ellis can you update PKGBUILD?

JP-Ellis commented on 2022-07-22 00:51 (UTC)

I've been a bit busy these part few weeks, but I am intending to get to this upgrade on the weekend. The split from a single installer to separate program and docs installer is good, though it does mean that the upgrade is less trivial. Thanks @mane.andrew for the patch though!

mane.andrea commented on 2022-07-21 13:44 (UTC)

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"
 }