41 lines
1.6 KiB
Bash
41 lines
1.6 KiB
Bash
# Maintainer: envolution
|
|
# Contributor: David Garfias <dgarfiasme@gmail.com>
|
|
# Contributor: ffcc <ffercc at gmail dot com>
|
|
# Contributor: George Eleftheriou <eleftg>
|
|
# Contributor: Marcel Hasler <mahasler at gmail dot com>
|
|
|
|
pkgname=scilab-bin
|
|
_pkgname=${pkgname%-bin}
|
|
pkgver=2025.0.0
|
|
pkgrel=2
|
|
pkgdesc="A software package for numerical computation, providing a powerful computing environment for engineering and scientific applications."
|
|
arch=("x86_64")
|
|
license=("GPL")
|
|
url="https://www.scilab.org"
|
|
# Standalone package
|
|
depends=('ncurses5-compat-libs')
|
|
conflicts=('scilab' 'scilab-git')
|
|
provides=('scilab')
|
|
options=(!strip)
|
|
# From Scilab downloads page (https://www.scilab.org/download/)
|
|
source=("https://iut-fbleau.fr/${_pkgname}-${pkgver}.bin.${CARCH}-linux-gnu.tar.xz")
|
|
sha256sums=('f74e47a63a4d5a7ba927bfdf9745e3ede3c3a5e3158b4d8e9c4c8879ac0d771c')
|
|
|
|
package() {
|
|
install -d "${pkgdir}/opt"
|
|
mkdir -p "${pkgdir}/usr/bin"
|
|
cp -a "${srcdir}/${_pkgname}-${pkgver}" "${pkgdir}/opt/${_pkgname}"
|
|
ln -s "/usr/lib/jvm/java-8-openjdk/jre" "${pkgdir}/opt/${_pkgname}/thirdparty/java"
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
|
install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
|
|
install -d "${pkgdir}/usr/share/applications"
|
|
install -Dm 644 share/applications/*.desktop "${pkgdir}/usr/share/applications"
|
|
install -d "${pkgdir}/usr/share/icons"
|
|
cp -a share/icons/hicolor "${pkgdir}/usr/share/icons"
|
|
for _executable in scilab scilab-cli scilab-adv-cli scinotes xcos; do
|
|
ln -s "${instdir}/opt/scilab/bin/${_executable}" "${pkgdir}/usr/bin/${_executable}"
|
|
done
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|