Search Criteria
Package Details: mathematica 14.0.0-1
Package Actions
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: | proprietary |
Submitter: | Feanor12 |
Maintainer: | JP-Ellis |
Last Packager: | JP-Ellis |
Votes: | 79 |
Popularity: | 0.005554 |
First Submitted: | 2011-03-03 21:27 (UTC) |
Last Updated: | 2024-01-15 22:25 (UTC) |
Dependencies (51)
- openmp
- rsync (rsync-gitAUR, rsync-reflinkAUR, rsync-reflink-gitAUR) (make)
- alsa-lib (optional)
- atk (at-spi2-core-gitAUR, at-spi2-core) (optional)
- cairo (cairo-gitAUR) (optional)
- ffmpeg (ffmpeg-intel-full-gitAUR, ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-cudaAUR, ffmpeg-ffplayoutAUR, ffmpeg-decklinkAUR, ffmpeg-fullAUR, ffmpeg-gitAUR, ffmpeg-amd-fullAUR, ffmpeg-headlessAUR, ffmpeg-amd-full-gitAUR, ffmpeg-full-gitAUR, ffmpeg-libfdk_aacAUR, ffmpeg-obsAUR) (optional)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR) (optional)
- gdk-pixbuf2 (gdk-pixbuf2-gitAUR) (optional)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR) (optional)
- glu (glu-gitAUR) (optional)
- gmimeAUR (optional)
- gmp (gmp-hgAUR) (optional)
- gtk2 (gtk2-maemoAUR, gtk2-patched-filechooser-icon-viewAUR) (optional)
- harfbuzz (harfbuzz-gitAUR) (optional)
- intel-tbb (onetbb-gitAUR, onetbb) (optional)
- java-environment (jdk12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, amazon-corretto-16AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jdk11-jbr-xdgAUR, jdk16-openjdkAUR, jdk14-openjdkAUR, amazon-corretto-18AUR, jdk18-openjdkAUR, jdk-android-studioAUR, amazon-corretto-19-binAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jdk-openj9AUR, jdk11-graalvm-ee-binAUR, jdk12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk8-graalvm-ee-binAUR, amazon-corretto-20-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk8-dragonwell-extendedAUR, jdk13-openjdkAUR, jdk15-openjdkAUR, jdk21-graalvm-binAUR, jdk8AUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jdk17-jetbrainsAUR, jdk8-openj9-binAUR, jdk-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, jdk17-openj9-binAUR, liberica-nik-24-full-binAUR, jdk21-jetbrains-gitAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, amazon-corretto-22-binAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, zulu-21-binAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, liberica-jdk-8-full-binAUR, liberica-jdk-21-full-binAUR, jdk8-temurinAUR, mandrel-binAUR, mandrel24-binAUR, zulu-17-fx-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jdk17-graalvm-ee-binAUR, jdk21-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk8-perfAUR, jdk22-graalvm-binAUR, jdkAUR, jdk19-openjdkAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, zing-21-binAUR, zing-8-binAUR, jdk21-jetbrains-binAUR, jre-jetbrainsAUR, jdk-openjdk-wakefieldAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, jdk21-openj9-binAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, jabba-binAUR, jdk21-jetbrainsAUR, jdk17-zulu-prime-binAUR, java-openjdk-ea-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jdk8-openjdk) (optional)
- java-runtime (jre10AUR, jre12AUR, server-jreAUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdgAUR, jre16-openjdkAUR, jre14-openjdkAUR, amazon-corretto-18AUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdkAUR, jdk-android-studioAUR, amazon-corretto-19-binAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jre-openj9AUR, jdk11-graalvm-ee-binAUR, jre12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk8-graalvm-ee-binAUR, amazon-corretto-20-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk8-dragonwell-extendedAUR, jre13-openjdkAUR, jre15-openjdkAUR, jdk21-graalvm-binAUR, jdk8AUR, jre8AUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jre17-jetbrainsAUR, jdk8-openj9-binAUR, jre-ltsAUR, jre17AUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, jdk17-openj9-binAUR, liberica-nik-24-full-binAUR, jre21-jetbrains-gitAUR, jdk21-jetbrains-gitAUR, zulu-jre-fx-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, amazon-corretto-22-binAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, zulu-21-binAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, liberica-jdk-8-full-binAUR, liberica-jdk-21-full-binAUR, jdk8-temurinAUR, mandrel-binAUR, mandrel24-binAUR, zulu-17-fx-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jdk17-graalvm-ee-binAUR, jdk21-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk8-perfAUR, jdk22-graalvm-binAUR, jreAUR, jdkAUR, jre19-openjdkAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, zing-21-binAUR, zing-8-binAUR, jdk21-jetbrains-binAUR, jre-jetbrainsAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, jdk21-openj9-binAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, jre21-jetbrainsAUR, jdk17-zulu-prime-binAUR, java-openjdk-ea-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre11-openjdk, jre17-openjdk, jre21-openjdk, jre8-openjdk) (optional)
- leptonica (optional)
- libbson (mongo-c-driver) (optional)
- libffi (libffi-gitAUR) (optional)
- libmongoc (mongo-c-driver) (optional)
- libogg (libogg-gitAUR) (optional)
- libpng12 (optional)
- libselinuxAUR (optional)
- libsm (optional)
- libssh2 (libssh2-gitAUR) (optional)
- libutil-linux (util-linux-libs-selinuxAUR, util-linux-libs-aesAUR, util-linux-libs) (optional)
- libx11 (libx11-gitAUR) (optional)
- libxcomposite (optional)
- libxml2 (libxml2-gitAUR, libxml2-2.9AUR) (optional)
- libxrandr (libxrandr-gitAUR) (optional)
- libxslt (libxslt-gitAUR) (optional)
- libxss (optional)
- libxtst (optional)
- libxxf86vm (optional)
- mesa-demos (optional) – for improved graphics output
- ncurses (ncurses-gitAUR) (optional)
- nvidia-utils (nvidia-410xx-utilsAUR, nvidia-340xx-utilsAUR, nvidia-440xx-utilsAUR, nvidia-430xx-utilsAUR, nvidia-vulkan-utilsAUR, nvidia-525xx-utilsAUR, nvidia-utils-teslaAUR, nvidia-510xx-utilsAUR, nvidia-390xx-utilsAUR, nvidia-470xx-utilsAUR, nvidia-535xx-utilsAUR, nvidia-550xx-utilsAUR, nvidia-utils-betaAUR) (optional)
- openssl-1.0AUR (optional)
- pango (pango-gitAUR) (optional)
- pixman (pixman-gitAUR) (optional)
- portaudio (optional)
- postgresql-libs (postgresql-libs-12AUR, postgresql13-libsAUR, postgresql-libs-gitAUR) (optional)
- python (python37AUR, python311AUR, python310AUR) (optional)
- qt5-declarative (qt5-declarative-gitAUR) (optional)
- qt5-multimedia (optional)
- qt5-webengine (optional)
- qt5-xmlpatterns (qt5-xmlpatterns-gitAUR) (optional)
- r (r352AUR, r-mklAUR) (optional)
- tesseract (tesseract-gitAUR) (optional)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compatAUR) (optional)
Required by (1)
Sources (2)
qimuzi commented on 2024-09-07 12:28 (UTC)
marmis commented on 2024-08-29 04:42 (UTC)
One thing to keep in mind, if you use MATHEMATICA_USERBASE
, that variable should be renamed to WOLFRAM_USERBASE
. More details at Upgrading from Mathematica to Wolfram.
marmis commented on 2024-08-29 01:21 (UTC)
@rpanerai Oh, thanks, I've had desktop files fixed in my system, but forgot to update the PKGBUILD. I checked a bit more thoroughly and everything should be okay. Please, let me know if there's anything else missing.
@jdujava I've updated the proposed PKGBUILD to work with a custom install directory, based on your patch. I haven't added bash
to makedepends, as it is already a dependency of pacman (and makepkg). For PKGBUILD, it is safe to assume that base
and base-devel
are installed.
jdujava commented on 2024-08-28 16:42 (UTC) (edited on 2024-08-28 16:43 (UTC) by jdujava)
@marmis: Would you be kind enough to also patch in support for changing the final installation directory, as sketched out in this gist?
rpanerai commented on 2024-08-28 16:20 (UTC) (edited on 2024-08-28 18:58 (UTC) by rpanerai)
@marmis: Thank you, the new PKGBUILD works smoothly.
My only problem is now with the .desktop
file embedded in the PKGBUILD. It points to /usr/bin/Mathematica
, yet the file is not provided by the new package. After the recent rebranding, the notebook GUI can be launched by running /usr/bin/WolframNB
.
EDIT: OK, as I am looking into this a bit more, it seems like the part of PKGBUILD that deals with fixing the symbolic links needs to be updated.
marmis commented on 2024-08-27 18:33 (UTC)
Oh sorry, my bad! But thank you @rpanerai. So the rsync
step is still required, I've updated the proposed PKGBUILD and included inetutils
, and tested the final version this time.
rpanerai commented on 2024-08-27 14:17 (UTC) (edited on 2024-08-27 14:18 (UTC) by rpanerai)
@marmis:
I tried the PKGBUILD in your repository but ${pkgdir}/opt/Mathematica/
somehow ends up containing only the Documentation
folder, leading to an error when later makepkg looks for the Executables
folder (at line 144 of PKGBUILD).
By the way, inetutils
should be added as a (make) dependency, as the installer script invokes hostname
.
marmis commented on 2024-08-25 19:17 (UTC) (edited on 2024-08-29 04:41 (UTC) by marmis)
Considering the rebranding, you could also create a new package named wolfram
or wolfram-app
using the replaces field to tell users to change package. Not sure what's the best decision here. Example: 1476643ed11cf3f1f6a82d94f636173ab4a62581
marmis commented on 2024-08-25 19:13 (UTC) (edited on 2024-08-29 01:46 (UTC) by marmis)
Hi @JP-Ellis the patch from @pants is solid, and builds the package correctly. I'd just like to add a few things:
-
there are still a few links broken (
_source_url
and a comment). -
as @jdujava pointed out, the PKGBUILD should use
bash
for the installer, notsh
. -
using(not actually true)${pkgdir}/tmp
as an intermediary folder for the documentation is not necessary anymore, they only provide the English documentation. Writing directly to${pkgdir}/opt/Mathematica
has the same result. This also mean thatrsync
dependency could be dropped. -
MD5 hashes are considered insecure and outdated. It is also slower than SHA256 on modern hardware (5.8s against 2.5s for me).
-
the license could use a more descriptive naming, like
LicenseRef-WolframMathematicaLicenseAgreement
. -
the PKGBUILD could enforce
!strip !debug
for improving build times (from 319.71 to 130.49 secs, for my machine). This change also makes the build use less resource overall. -
support for a different installation directory (see @jdujava's comment).
-
verified scripts (and fixed possible errors) with
shellcheck --shell=bash --exclude=SC2034,SC2154 PKGBUILD
. -
use relative paths for symlinks, so it work even not mounted as root.
I have a patch applying all these change (and @pants's too) in this commit: 32143994a55c4088a2e7067bb8b8138a28b29ad0 (updated).
pants commented on 2024-08-23 18:10 (UTC)
v14.1.0 has been released. The following patch successfully builds the package (the rebranding to Wolfram continues apace).
diff --git a/PKGBUILD b/PKGBUILD
index 5440a78..926994e 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."
@@ -82,11 +82,11 @@ _source_url=$(
| sed -E 's/.*href="([^"]+)".*/\1/'
)
source=(
- "Mathematica_${pkgver}_BNDL_LINUX.sh::${_source_url}"
+ "Wolfram_${pkgver}_LIN_Bndl.sh"
"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,7 +112,7 @@ prepare() {
fi
msg2 "Extracting Mathematica installer..."
- sh "${srcdir}/Mathematica_${pkgver}_BNDL_LINUX.sh" \
+ sh "${srcdir}/Wolfram_${pkgver}_LIN_Bndl.sh" \
--keep \
--target "${srcdir}/bundle" \
-- \
@@ -124,7 +124,7 @@ prepare() {
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
@@ -149,12 +149,12 @@ package() {
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/wolframnb
ln -s /opt/Mathematica/Executables/WolframKernel
+ ln -s /opt/Mathematica/Executables/WolframNB
ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/ELProver
ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript
@@ -172,7 +172,7 @@ package() {
${pkgdir}/usr/share/desktop-directories \
${pkgdir}/usr/share/mime/packages
cd ${pkgdir}/opt/Mathematica/SystemFiles/Installation
- desktopFile="com.wolfram.Mathematica.${_pkgver}.desktop"
+ desktopFile="com.wolfram.Wolfram.${_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
printf 'Categories=Science;Education;Languages;ArtificialIntelligence;Astronomy;Biology;Chemistry;ComputerScience;DataVisualization;Geography;ImageProcessing;Math;NumericalAnalysis;MedicalSoftware;Physics;ParallelComputer;\n' >> $desktopFile
diff --git a/remove-xdg-scripts.patch b/remove-xdg-scripts.patch
index e44790d..22eeaf8 100644
--- a/remove-xdg-scripts.patch
+++ b/remove-xdg-scripts.patch
@@ -1,5 +1,5 @@
---- a/Unix/Installer/MathInstaller
-+++ b/Unix/Installer/MathInstaller
+--- a/Unix/Installer/WolframInstaller
++++ b/Unix/Installer/WolframInstaller
@@ -1985,6 +1985,8 @@
xdgScripts="${FullTargetDirectory}/SystemFiles/Installation"
fi
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.