blob: a8791ed23006a52873120dd9bfb0c0b56da1cd93 (
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
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Mads Mogensen <mads256h at gmail dot com>
# Contributor: Alice Ryhl <alice at ryhl dot io>
# Contributor: Mark Weiman <mark dot weiman at markzz dot com>
# Based on Alice Ryhls maple2019 package
# A valid license to Maple is required and you must have the installer ready.
pkgname=maple2023
pkgver=latest
pkgrel=1
pkgdesc="A commercial computer algebra system developed and sold commercially by Maplesoft. Version 2023."
arch=('x86_64')
url=https://www.maplesoft.com/download/
license=('custom')
depends=('ld-lsb')
conflicts=(maple18 maple2019 maple2020 maple2021)
options=(!strip)
install='maple2023.install'
source=(maple2023.desktop Maplesoft-x-maple-worksheet.xml local://Maple2023.1LinuxX64Installer.run)
sha256sums=('bc6e332a56042bc46e75da9b14f47e78b53a0468beb2e0ff502e847aec024186'
'e29ded05d8cda39ae2c8dd2b204c3b47e5c432d75d8e2bde3ddae0b71136b643'
'SKIP')
build() {
echo "Unpacking installer... If the installation fails make sure your /tmp directory is not full"
"${srcdir}/Maple2023.1LinuxX64Installer.run" --mode unattended --installdir "${srcdir}/maple2023" --desktopshortcut 0 --defaultapp 0 --enableUpdates 0 --checkForUpdatesNow 0
}
package () {
install -d "${pkgdir}/usr/bin/"
install -d "${pkgdir}/usr/share/licenses/maple2023/"
install -D -m755 "${srcdir}/maple2023.desktop" "${pkgdir}/usr/share/applications/maple2023.desktop"
install -D -m755 "${srcdir}/Maplesoft-x-maple-worksheet.xml" "${pkgdir}/usr/share/mime/packages/Maplesoft-x-maple-worksheet.xml"
cp -r "${srcdir}/maple2023/man" "${pkgdir}/usr/share/"
cp -r "${srcdir}/maple2023" "${pkgdir}/usr/share/"
ln -s "/usr/share/maple2023/bin/maple" "${pkgdir}/usr/bin/maple"
ln -s "/usr/share/maple2023/bin/xmaple" "${pkgdir}/usr/bin/xmaple"
ln -s "/usr/share/maple2023/bin/maple.system.type" "${pkgdir}/usr/bin/maple.system.type"
ln -s "/usr/share/maple2023/bin/mint" "${pkgdir}/usr/bin/mint"
ln -s "/usr/share/maple2023/EULA.html" "${pkgdir}/usr/share/licenses/maple2023/LICENSE.html"
find "${pkgdir}/" -name "*.log" -delete
find "${pkgdir}/" -type f -exec sed -i "s|${srcdir}|/usr/share|g" {} \;
}
|