summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7b76ed6d6f496c1c88d317c9b988ad48ba970ab (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 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>
# shellcheck shell=bash disable=SC2034,SC2154

pkgname=scilab-bin
_pkgname=${pkgname%-bin}
pkgver=2025.1.0
pkgrel=1
pkgdesc="a powerful computing environment for engineering and scientific applications."
arch=("x86_64")
license=("GPL-2.0-or-later")
url="https://www.scilab.org"
# Standalone package
depends=(
  ncurses5-compat-libs
  hicolor-icon-theme
  freetype2
  zlib
  ruby
  alsa-lib
  cairo
  pango
  dbus
  libxrandr
  libx11
  libxi
  libxext
  nss
  libdrm
  java-runtime
  python
  libxtst
  nspr
  libxkbcommon
  libxxf86vm
  libcups
  glib2
  libxdamage
  libxcursor
  libxrender
  libxcb
  libxcomposite
  expat
  mesa
  perl
  libxfixes
  at-spi2-core)
conflicts=(scilab)
provides=(scilab)
options=(!strip)
# From Scilab downloads page (https://www.scilab.org/download/)
source=("https://www.scilab.org/download/${pkgver}/${_pkgname}-${pkgver}.bin.${CARCH}-linux-gnu.tar.xz")
sha256sums=('9c9c391e0d8e391621855394c05916b8e313ad08d2db3036189222d5c7aa2d8c')

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:
# vim:set ts=2 sw=2 et: