summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: a5badd770ecc61c8094c561f3c53c5272b28c02d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Jaron Kent-Dobias <jaron@kent-dobias.com>

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
}