[arch-commits] Commit in r/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Apr 21 12:47:01 UTC 2021
Date: Wednesday, April 21, 2021 @ 12:47:01
Author: arojas
Revision: 412971
Add pdf docs (FS#69237), overhaul PKGBUILD
Modified:
r/trunk/PKGBUILD
----------+
PKGBUILD | 40 +++++++++++++++++++---------------------
1 file changed, 19 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-21 12:38:59 UTC (rev 412970)
+++ PKGBUILD 2021-04-21 12:47:01 UTC (rev 412971)
@@ -5,16 +5,16 @@
pkgname=r
pkgver=4.0.5
-pkgrel=2
+pkgrel=3
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'
+depends=('lapack' 'libtiff' 'pcre2' 'perl' 'libxmu' 'pango' 'zip' 'unzip' 'curl' 'icu')
+makedepends=('jdk-openjdk' 'gcc-fortran' 'tk' 'texlive-core')
+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')
@@ -22,10 +22,10 @@
'r.desktop'
'r.png'
'R.conf')
-sha1sums=('c4f20c5d32d47b014ad20cfa4dbd8bbe74c77601'
- 'dd214eee232b7aced7366722ad416b6b39be8e1b'
- 'a69a07ec363440efc18ce0a7f2af103375dea978'
- '43668da6cfd1b4455a99f23e79e2059294dddac9')
+sha256sums=('0a3ee079aa772e131fe5435311ab627fcbccb5a50cabc54292e6f62046f1ffef'
+ '25b01ea93fa704884b65ba002d44d4e99725bd826997e8c73b6467df9f23c798'
+ '1580d06a737951f4f3c903cbd514247d9071fc6868eb9c2de94bb999cc195cb1'
+ 'b7833166041b06f716b6a79095d27d4abd83549816dc53193213827139eae6ef')
prepare() {
cd R-${pkgver}
@@ -49,8 +49,8 @@
F77=gfortran \
LIBnn=lib
make
+ make pdf
-# make libRmath.so
cd src/nmath/standalone
make shared
}
@@ -57,25 +57,23 @@
package() {
cd R-$pkgver
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install install-pdf
# install libRmath.so
cd src/nmath/standalone
make DESTDIR="${pkgdir}" install
- # Fixup R wrapper scripts.
+# 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"
+# install some freedesktop.org compatibility
+ install -Dm644 "${srcdir}/r.desktop" -t "${pkgdir}/usr/share/applications"
+ install -Dm644 "${srcdir}/r.png" -t "${pkgdir}/usr/share/pixmaps"
- # move the config directory to /etc and create symlinks
+# move the config directory to /etc and create symlinks
install -d "${pkgdir}/etc/R"
cd "${pkgdir}/usr/lib/R/etc"
for i in *; do
@@ -83,6 +81,6 @@
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"
+# Install ld.so.conf.d file to ensure other applications access the shared lib
+ install -Dm644 "${srcdir}/R.conf" -t "${pkgdir}/etc/ld.so.conf.d"
}
More information about the arch-commits
mailing list