Files
scilab-bin/PKGBUILD

41 lines
1.6 KiB
Bash
Raw Normal View History

2024-10-28 19:55:02 +00:00
# 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>
2015-11-11 20:39:15 +01:00
pkgname=scilab-bin
2017-10-28 22:41:42 +02:00
_pkgname=${pkgname%-bin}
2024-10-28 19:55:02 +00:00
pkgver=2025.0.0
2024-11-07 01:18:33 +00:00
pkgrel=2
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")
license=("GPL")
2015-11-11 20:39:15 +01:00
url="https://www.scilab.org"
# Standalone package
2023-11-25 23:45:28 -06:00
depends=('ncurses5-compat-libs')
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/)
2025-04-08 14:23:08 +02:00
source=("https://iut-fbleau.fr/${_pkgname}-${pkgver}.bin.${CARCH}-linux-gnu.tar.xz")
2024-10-28 19:55:02 +00:00
sha256sums=('f74e47a63a4d5a7ba927bfdf9745e3ede3c3a5e3158b4d8e9c4c8879ac0d771c')
2015-11-11 20:39:15 +01:00
package() {
install -d "${pkgdir}/opt"
mkdir -p "${pkgdir}/usr/bin"
2017-10-28 22:41:42 +02:00
cp -a "${srcdir}/${_pkgname}-${pkgver}" "${pkgdir}/opt/${_pkgname}"
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"
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
}
2024-10-28 19:55:02 +00:00
# vim: ts=2 sw=2 et: