Guest User

Untitled

a guest
Jun 23rd, 2019
422
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer : George Eleftheriou <eleftg>
  2. # Contributor : Marcel Hasler <mahasler at gmail dot com>
  3.  
  4. pkgname=scilab-bin
  5. _pkgname=${pkgname%-bin}
  6. pkgver=6.0.2
  7. pkgrel=1
  8. pkgdesc="A software package for numerical computation, providing a powerful computing environment for engineering and scientific applications."
  9. arch=("x86_64")
  10. license=("BSD" "custom:CeCILL")
  11. url="https://www.scilab.org"
  12. # Standalone package
  13. depends=()
  14. conflicts=('scilab')
  15. options=(!strip)
  16. source=("http://www.scilab.org/download/${pkgver}/scilab-${pkgver}.bin.linux-x86_64.tar.gz")
  17. sha256sums=("1c05944d763fd77af22dd06868ed7cd599818bed8beb4173cc0d249f5f639415")
  18.  
  19. prepare() {
  20. cd "${srcdir}/${_pkgname}-${pkgver}/share/applications"
  21. sed -i "s|Exec=scilab-adv-cli|Exec=/opt/scilab/bin/scilab-adv-cli|" scilab-adv-cli.desktop
  22. sed -i "s|Exec=scilab-cli|Exec=/opt/scilab/bin/scilab-cli|" scilab-cli.desktop
  23. sed -i "s|Exec=scilab -f|Exec=/opt/scilab/bin/scilab -f %f|" scilab.desktop
  24. sed -i "s|Terminal=false|Terminal=true|" scilab.desktop
  25. sed -i "s|Exec=scinotes|Exec=/opt/scilab/bin/scinotes|" scinotes.desktop
  26. sed -i "s|Exec=xcos|Exec=/opt/scilab/bin/xcos|" xcos.desktop
  27. sed -i "s|Terminal=false|Terminal=true|" xcos.desktop
  28. cd "${srcdir}/${_pkgname}-${pkgver}"
  29. }
  30.  
  31. package() {
  32. install -d "${pkgdir}/opt"
  33. cp -a "${srcdir}/${_pkgname}-${pkgver}" "${pkgdir}/opt/${_pkgname}"
  34. cd "${srcdir}/${_pkgname}-${pkgver}"
  35. install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
  36. install -d "${pkgdir}/usr/share/applications"
  37. install -Dm 644 share/applications/*.desktop "${pkgdir}/usr/share/applications"
  38. install -d "${pkgdir}/usr/share/icons"
  39. cp -a share/icons/hicolor "${pkgdir}/usr/share/icons"
  40. }
RAW Paste Data