# Maintainer: Jaron Kent-Dobias pkgbase=wolfram-engine pkgname=wolfram-engine-aarch64 pkgver=12.1.1+2020081901 pkgrel=1 arch=('aarch64') url="https://www.wolfram.com/raspberry-pi/" license=('proprietary') depends=('armv6h-libs') source=("https://files.wolframcdn.com/raspbian/12.1.1.0/wolfram-engine_12.1.1+2020081901_armhf.deb") md5sums=('aed07c54dd14d9a4d87b7d266649ff80') options=(!strip) # Compressing takes a long time and is not helpful for local installations. PKGEXT='.pkg.tar' prepare() { ar xv wolfram-engine_${pkgver}_armhf.deb } package() { cd ${pkgdir} tar -xf ${srcdir}/data.tar.xz mkdir usr/bin ln -s /opt/Wolfram/WolframEngine/12.1/Executables/MathKernel usr/bin/MathKernel ln -s /opt/Wolfram/WolframEngine/12.1/Executables/Mathematica usr/bin/Mathematica ln -s /opt/Wolfram/WolframEngine/12.1/Executables/WolframKernel usr/bin/WolframKernel ln -s /opt/Wolfram/WolframEngine/12.1/Executables/math usr/bin/math ln -s /opt/Wolfram/WolframEngine/12.1/Executables/mathematica usr/bin/mathematica ln -s /opt/Wolfram/WolframEngine/12.1/Executables/wolfram usr/bin/wolfram ln -s /opt/Wolfram/WolframEngine/12.1/Executables/mcc usr/bin/mcc }