2021-02-05 22:25:13 -06:00
|
|
|
# Maintainer: David Garfias <jose.garfias@ingenieria.unam.edu>
|
|
|
|
# Contributor: ffcc <ffercc at gmail dot com>
|
|
|
|
# Contributor: George Eleftheriou <eleftg>
|
|
|
|
# Contributor: Marcel Hasler <mahasler at gmail dot com>
|
2015-11-11 20:39:15 +01:00
|
|
|
|
|
|
|
pkgname=scilab-bin
|
2017-10-28 22:41:42 +02:00
|
|
|
_pkgname=${pkgname%-bin}
|
2023-06-02 20:48:54 -06:00
|
|
|
pkgver=2023.1.0
|
2023-03-13 15:26:49 -06:00
|
|
|
pkgrel=1
|
2017-10-28 22:41:42 +02:00
|
|
|
pkgdesc="A software package for numerical computation, providing a powerful computing environment for engineering and scientific applications."
|
2018-02-20 21:32:17 +01:00
|
|
|
arch=("x86_64")
|
2021-07-20 15:36:31 -05:00
|
|
|
license=("GPL")
|
2015-11-11 20:39:15 +01:00
|
|
|
url="https://www.scilab.org"
|
|
|
|
# Standalone package
|
2021-02-05 22:32:01 -06:00
|
|
|
depends=('ncurses5-compat-libs' 'jre8-openjdk')
|
2021-08-06 18:21:51 -05:00
|
|
|
conflicts=('scilab' 'scilab-git')
|
|
|
|
provides=('scilab')
|
2017-10-28 22:41:42 +02:00
|
|
|
options=(!strip)
|
2022-12-21 22:45:20 -06:00
|
|
|
# From Scilab downloads page (https://www.scilab.org/download/)
|
2023-06-02 20:48:54 -06:00
|
|
|
source=("https://www.scilab.org/download/${pkgver}/${_pkgname}-${pkgver}.bin.x86_64-linux-gnu.tar.xz")
|
|
|
|
sha256sums=("8abcd28bc560f47a48479c37d3aaf9a976156611f1ca238cda1ac4ad866fa8c5")
|
2017-10-28 22:41:42 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
2021-02-05 22:25:13 -06:00
|
|
|
rm -R thirdparty/java
|
2017-10-28 22:41:42 +02:00
|
|
|
}
|
2015-11-11 20:39:15 +01:00
|
|
|
|
|
|
|
package() {
|
|
|
|
install -d "${pkgdir}/opt"
|
2021-08-06 18:21:51 -05:00
|
|
|
mkdir -p "${pkgdir}/usr/bin"
|
2017-10-28 22:41:42 +02:00
|
|
|
cp -a "${srcdir}/${_pkgname}-${pkgver}" "${pkgdir}/opt/${_pkgname}"
|
2021-02-05 22:25:13 -06:00
|
|
|
ln -s "/usr/lib/jvm/java-8-openjdk/jre" "${pkgdir}/opt/${_pkgname}/thirdparty/java"
|
2017-10-28 22:41:42 +02:00
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
|
|
|
install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
|
2015-11-11 20:39:15 +01:00
|
|
|
install -d "${pkgdir}/usr/share/applications"
|
2017-10-28 22:41:42 +02:00
|
|
|
install -Dm 644 share/applications/*.desktop "${pkgdir}/usr/share/applications"
|
2015-11-11 20:39:15 +01:00
|
|
|
install -d "${pkgdir}/usr/share/icons"
|
2017-10-28 22:41:42 +02:00
|
|
|
cp -a share/icons/hicolor "${pkgdir}/usr/share/icons"
|
2021-08-06 18:21:51 -05:00
|
|
|
for _executable in scilab scilab-cli scilab-adv-cli scinotes xcos; do
|
|
|
|
ln -s "${instdir}/opt/scilab/bin/${_executable}" "${pkgdir}/usr/bin/${_executable}"
|
|
|
|
done
|
2015-11-11 20:39:15 +01:00
|
|
|
}
|