[arch-commits] Commit in r/repos (5 files)

Felix Yan felixonmars at archlinux.org
Sat Dec 19 10:06:07 UTC 2020


    Date: Saturday, December 19, 2020 @ 10:06:07
  Author: felixonmars
Revision: 404604

archrelease: copy trunk to staging-x86_64

Added:
  r/repos/staging-x86_64/
  r/repos/staging-x86_64/PKGBUILD
    (from rev 404603, r/trunk/PKGBUILD)
  r/repos/staging-x86_64/R.conf
    (from rev 404603, r/trunk/R.conf)
  r/repos/staging-x86_64/r.desktop
    (from rev 404603, r/trunk/r.desktop)
  r/repos/staging-x86_64/r.png
    (from rev 404603, r/trunk/r.png)

-----------+
 PKGBUILD  |   87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 R.conf    |    2 +
 r.desktop |   11 +++++++
 3 files changed, 100 insertions(+)

Copied: r/repos/staging-x86_64/PKGBUILD (from rev 404603, r/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-12-19 10:06:07 UTC (rev 404604)
@@ -0,0 +1,87 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+# Contributor: K. Piche <kpiche at rogers.com>
+
+pkgname=r
+pkgver=4.0.3
+pkgrel=2
+pkgdesc="Language and environment for statistical computing and graphics"
+arch=('x86_64')
+license=('GPL')
+url='https://www.r-project.org/'
+depends=('blas' 'lapack' 'bzip2'  'libpng' 'libjpeg' 'libtiff'
+         'ncurses' 'pcre2' 'readline' 'zlib' 'perl'
+         'libxt' 'libxmu' 'pango' 'xz' 'zip' 'unzip' 'curl' 'icu' 'which')
+makedepends=('jdk-openjdk' 'gcc-fortran' 'tk')
+optdepends=('tk: tcl/tk interface' 'texlive-bin: latex sty files' 'gcc-fortran: needed to compile some CRAN packages'
+            'openblas: faster linear algebra')
+backup=('etc/R/Makeconf' 'etc/R/Renviron' 'etc/R/ldpaths' 'etc/R/repositories' 'etc/R/javaconf')
+options=('!emptydirs')
+source=("https://cran.r-project.org/src/base/R-${pkgver%%.*}/R-${pkgver}.tar.gz"
+	'r.desktop'
+	'r.png'
+	'R.conf')
+sha1sums=('5daba2d63e07a9f39d9b69b68f0642d71213ec5c'
+          'dd214eee232b7aced7366722ad416b6b39be8e1b'
+          'a69a07ec363440efc18ce0a7f2af103375dea978'
+          '43668da6cfd1b4455a99f23e79e2059294dddac9')
+
+prepare() {
+   cd R-${pkgver}
+   # set texmf dir correctly in makefile
+   sed -i 's|$(rsharedir)/texmf|${datarootdir}/texmf|' share/Makefile.in
+}
+
+build() {
+   cd R-${pkgver}
+   ./configure  --prefix=/usr \
+		--libdir=/usr/lib \
+		--sysconfdir=/etc/R \
+		--datarootdir=/usr/share \
+		  rsharedir=/usr/share/R/ \
+		  rincludedir=/usr/include/R/ \
+		  rdocdir=/usr/share/doc/R/ \
+                --with-x \
+		--enable-R-shlib \
+                --with-lapack \
+		--with-blas \
+                F77=gfortran \
+		LIBnn=lib
+   make
+
+# make libRmath.so
+   cd src/nmath/standalone
+   make shared
+}
+
+package() {
+   cd R-${pkgver}
+   make DESTDIR="${pkgdir}" install
+
+# install libRmath.so
+   cd src/nmath/standalone
+   make DESTDIR="${pkgdir}" install
+
+   #  Fixup R wrapper scripts.
+   sed -i "s|${pkgdir} ||" "${pkgdir}/usr/bin/R"
+   rm "${pkgdir}/usr/lib/R/bin/R"
+   cd "${pkgdir}/usr/lib/R/bin"
+   ln -s ../../../bin/R
+
+  # install some freedesktop.org compatibility
+  install -Dm644 "${srcdir}/r.desktop" \
+	"${pkgdir}/usr/share/applications/r.desktop"
+  install -Dm644 "${srcdir}/r.png" \
+	"${pkgdir}/usr/share/pixmaps/r.png"
+
+  # move the config directory to /etc and create symlinks
+  install -d "${pkgdir}/etc/R"
+  cd "${pkgdir}/usr/lib/R/etc"
+  for i in *; do
+    mv -f ${i} "${pkgdir}/etc/R"
+    ln -s /etc/R/${i} ${i}
+  done
+
+  # Install ld.so.conf.d file to ensure other applications access the shared lib
+  install -Dm644 "${srcdir}/R.conf" "${pkgdir}/etc/ld.so.conf.d/R.conf"
+}

Copied: r/repos/staging-x86_64/R.conf (from rev 404603, r/trunk/R.conf)
===================================================================
--- staging-x86_64/R.conf	                        (rev 0)
+++ staging-x86_64/R.conf	2020-12-19 10:06:07 UTC (rev 404604)
@@ -0,0 +1,2 @@
+/usr/lib/R/lib
+

Copied: r/repos/staging-x86_64/r.desktop (from rev 404603, r/trunk/r.desktop)
===================================================================
--- staging-x86_64/r.desktop	                        (rev 0)
+++ staging-x86_64/r.desktop	2020-12-19 10:06:07 UTC (rev 404604)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=R
+GenericName=environment for statistical computing
+Comment=language and environment for statistical computing and graphics
+Exec=R
+Icon=/usr/share/pixmaps/r.png
+DocPath=/usr/lib/R/doc/html/index.html
+StartupNotify=true
+Terminal=true
+Type=Application
+Categories=Math;Science;Education

Copied: r/repos/staging-x86_64/r.png (from rev 404603, r/trunk/r.png)
===================================================================
(Binary files differ)



More information about the arch-commits mailing list