blob: f88c6f9965ac4bf9383276fdb1d8b0ee68ab4f39 (
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
35
36
37
38
|
# 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"
"wolfram-engine-aarch64-ld_library.patch")
md5sums=('aed07c54dd14d9a4d87b7d266649ff80'
'1ddf68872597028fa477a9448c769885')
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
patch --forward --strip=1 --input=${srcdir}/wolfram-engine-aarch64-ld_library.patch
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
}
|