talimat 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Tanım: İstatistiksel hesaplama ve grafik için programlama dili
  2. # URL: https://www.r-project.org/
  3. # Paketçi: milisarge
  4. # Gerekler: tk lapack libpng libjpeg-turbo libtiff pcre xorg-libxt xorg-libxmu pango zip unzip icu
  5. # Grup: geliştirme
  6. isim=r-lang
  7. surum=3.5.1
  8. devir=1
  9. kaynak=(https://cran.r-project.org/src/base/R-${surum%%.*}/R-3.5.1.tar.gz
  10. r.desktop
  11. r.png
  12. R.conf)
  13. derle() {
  14. cd R-${surum}
  15. # set texmf dir correctly in makefile
  16. sed -i 's|$(rsharedir)/texmf|${datarootdir}/texmf|' share/Makefile.in
  17. ./configure --prefix=/usr \
  18. --libdir=/usr/lib \
  19. --sysconfdir=/etc/R \
  20. --datarootdir=/usr/share \
  21. rsharedir=/usr/share/R/ \
  22. rincludedir=/usr/include/R/ \
  23. --with-x \
  24. --enable-R-shlib \
  25. --with-lapack \
  26. F77=gfortran \
  27. LIBnn=lib
  28. make
  29. # make libRmath.so
  30. cd src/nmath/standalone
  31. make shared
  32. cd $SRC/R-${surum}
  33. make DESTDIR="${PKG}" install
  34. # install libRmath.so
  35. make DESTDIR="${PKG}" install
  36. # Fixup R wrapper scripts.
  37. sed -i "s|${PKG} ||" "${PKG}/usr/bin/R"
  38. rm "${PKG}/usr/lib/R/bin/R"
  39. cd "${PKG}/usr/lib/R/bin"
  40. ln -s ../../../bin/R
  41. # install some freedesktop.org compatibility
  42. install -Dm644 "${SRC}/r.desktop" "${PKG}/usr/share/applications/r.desktop"
  43. install -Dm644 "${SRC}/r.png" "${PKG}/usr/share/pixmaps/r.png"
  44. # move the config directory to /etc and create symlinks
  45. install -d "${PKG}/etc/R"
  46. cd "${PKG}/usr/lib/R/etc"
  47. for i in *; do
  48. mv -f ${i} "${PKG}/etc/R"
  49. ln -s /etc/R/${i} ${i}
  50. done
  51. # Install ld.so.conf.d file to ensure other applications access the shared lib
  52. install -Dm644 "${SRC}/R.conf" "${PKG}/etc/ld.so.conf.d/R.conf"
  53. rm -rf $PKG/usr/share/doc
  54. }