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.
Search Criteria
Package Details: mathematica 14.2.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/mathematica.git (read-only, click to copy) |
---|---|
Package Base: | mathematica |
Description: | Computational software for mathematics, science, and engineering, with offline documentation included. |
Upstream URL: | http://www.wolfram.com/mathematica/ |
Licenses: | LicenseRef-WolframMathematicaLicenseAgreement |
Submitter: | Feanor12 |
Maintainer: | JP-Ellis (marmis) |
Last Packager: | marmis |
Votes: | 81 |
Popularity: | 0.82 |
First Submitted: | 2011-03-03 21:27 (UTC) |
Last Updated: | 2025-04-13 04:04 (UTC) |
Dependencies (55)
- openmp
- chrpath (chrpath-gitAUR) (make)
- curl (curl-gitAUR, curl-c-aresAUR) (make)
- inetutils (inetutils-gitAUR) (make)
- rsync (rsync-gitAUR, rsync-reflink-gitAUR, rsync-reflinkAUR) (make)
- alsa-lib (optional)
- atk (at-spi2-core-gitAUR, at-spi2-core) (optional)
- cairo (cairo-gitAUR) (optional)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-cudaAUR, ffmpeg-ffplayoutAUR, ffmpeg-headlessAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-gitAUR, ffmpeg-full-gitAUR, ffmpeg-amd-full-gitAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR) (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-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, liberica-jre-11-binAUR, jdk11-j9-binAUR, jdk16-openjdkAUR, jdk14-openjdkAUR, jdk18-openjdkAUR, 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, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk13-openjdkAUR, jdk15-openjdkAUR, jdk21-graalvm-binAUR, jdk17-jetbrainsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, jdk21-jetbrains-gitAUR, zulu-8-binAUR, mandrel-binAUR, mandrel24-binAUR, liberica-jdk-11-lite-binAUR, jdk17-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk22-graalvm-binAUR, jdk19-openjdkAUR, zulu-jdk-fx-binAUR, jabba-binAUR, jdk21-jetbrainsAUR, jdk17-zulu-prime-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk11-openj9-binAUR, jdk-openjdk-wakefieldAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk-android-studioAUR, jdk-openj9-binAUR, zulu-11-binAUR, jdk8-graalvm-ee-binAUR, jdk11AUR, jdk21-graalvm-ee-binAUR, jdk8-openj9-binAUR, jdk8-temurinAUR, jdk8AUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jdk23-graalvm-ee-binAUR, openjdk-zulu8-ca-fx-binAUR, openjdk-zulu11-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, openjdk-liberica8-full-binAUR, openjdk-liberica11-full-binAUR, openjdk-liberica17-full-binAUR, openjdk-liberica21-full-binAUR, openjdk-zulu-ca-fx-binAUR, openjdk-liberica-full-binAUR, jdk24-graalvm-ee-binAUR, jdk8-perfAUR, zing-21-binAUR, zing-23-binAUR, jdk21-openj9-binAUR, jdk17-openj9-binAUR, jre-jetbrainsAUR, jdk21-jetbrains-binAUR, jdk17-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, java-openjdk-binAUR, jdk24-graalvm-ce-binAUR, jdkAUR, jdk-ltsAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk8-dragonwell-extendedAUR, liberica-jdk-11-binAUR, zulu-17-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-21-binAUR, java-openjdk-ea-binAUR, zulu-17-fx-binAUR, liberica-jdk-17-full-binAUR, zulu-21-binAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, zing-8-binAUR, zulu-24-binAUR, jdk23-temurinAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jdk8-openjdk) (optional)
- java-runtime (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre16-openjdkAUR, jre14-openjdkAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdkAUR, 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, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdkAUR, jre15-openjdkAUR, jdk21-graalvm-binAUR, jre17-jetbrainsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, jre21-jetbrains-gitAUR, jdk21-jetbrains-gitAUR, zulu-8-binAUR, mandrel-binAUR, mandrel24-binAUR, liberica-jdk-11-lite-binAUR, jdk17-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk22-graalvm-binAUR, jre19-openjdkAUR, zulu-jdk-fx-binAUR, jre21-jetbrainsAUR, jdk17-zulu-prime-binAUR, zulu-jre-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk11-openj9-binAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk-android-studioAUR, jdk-openj9-binAUR, zulu-11-binAUR, jdk8-graalvm-ee-binAUR, jre11AUR, jre17AUR, jdk21-graalvm-ee-binAUR, jdk8-openj9-binAUR, jre-zuluAUR, jre-zulu-fxAUR, jdk8-temurinAUR, jre8AUR, jdk8AUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jdk23-graalvm-ee-binAUR, openjdk-zulu8-ca-fx-binAUR, openjdk-zulu11-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, openjdk-liberica8-full-binAUR, openjdk-liberica11-full-binAUR, openjdk-liberica17-full-binAUR, openjdk-liberica21-full-binAUR, openjdk-zulu-ca-fx-binAUR, openjdk-liberica-full-binAUR, jdk24-graalvm-ee-binAUR, jdk8-perfAUR, zing-21-binAUR, zing-23-binAUR, jdk21-openj9-binAUR, jdk17-openj9-binAUR, jre-jetbrainsAUR, jdk21-jetbrains-binAUR, jdk17-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, java-openjdk-binAUR, jdk24-graalvm-ce-binAUR, jreAUR, jdkAUR, jre-ltsAUR, jdk-ltsAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk8-dragonwell-extendedAUR, liberica-jdk-11-binAUR, zulu-17-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-21-binAUR, java-openjdk-ea-binAUR, zulu-17-fx-binAUR, liberica-jdk-17-full-binAUR, zulu-21-binAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, zing-8-binAUR, jre21-zulu-binAUR, jre17-zulu-binAUR, zulu-24-binAUR, jdk23-temurinAUR, 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-aesAUR, util-linux-libs-selinuxAUR, 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-440xx-utilsAUR, nvidia-430xx-utilsAUR, nvidia-340xx-utilsAUR, nvidia-525xx-utilsAUR, nvidia-510xx-utilsAUR, nvidia-utils-teslaAUR, nvidia-vulkan-utilsAUR, nvidia-390xx-utilsAUR, nvidia-470xx-utilsAUR, nvidia-550xx-utilsAUR, nvidia-535xx-utilsAUR, nvidia-utils-betaAUR) (optional)
- openssl-1.0AUR (optional)
- pango (pango-gitAUR) (optional)
- pixman (pixman-gitAUR) (optional)
- portaudio (optional)
- postgresql-libs (postgresql13-libsAUR, postgresql-libs-gitAUR, postgresql-libs-12AUR) (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 (r-mklAUR) (optional)
- tesseract (tesseract-gitAUR) (optional)
- ttf-dejavu (ttf-dejavu-ibAUR, ttf-dejavu-emojilessAUR) (optional) – correct fonts for Greek characters and inline TeX
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat) (optional)
Required by (1)
Sources (3)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 .. 37 Next › Last »
marmis commented on 2024-08-27 18:33 (UTC)
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
paran3xus commented on 2024-08-19 18:09 (UTC)
Wolfram updated their website, and previous PKGBUILD is broken.
loqy commented on 2024-04-03 08:46 (UTC)
Could the wolfram-mathematica,png
files be renamed to mathematica.png
to match the files provided by the icon Breeze icon theme, so that icon replacements work correctly?
algar commented on 2024-01-17 09:02 (UTC)
The situation with wolframengine is that its kernel version is usually behind the kernel version shipped with mathematica. Check https://www.wolfram.com/engine/ versus https://www.wolfram.com/mathematica/.
JP-Ellis commented on 2024-01-17 05:23 (UTC)
Thanks for checking @loqy! I'll update the PKGBUILDs to make use of bash
correctly.
I'll make sure to mark the difference with wolframengine
more explicitly. I guess there's two ways I can do this: provides=('wolframengine')
and conflicts=('wolframengine')
. I'm thinking it should be the former (provides
), as I think that all of the functionality of wolframengine
is provided by the main mathematica
package. Can someone confirm whether this is true (or if not, why)?
loqy commented on 2024-01-17 05:17 (UTC)
I can confirm that switching the sh
calls in PKGBUILD to bash
resulted in a successful installation, though I do not have wolframengine
installed as algar does.
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.