Browse Source

[testing] -> [extra] 'r-3.6.0-1' move

master
artoo 4 months ago
parent
commit
978ceaa7ba
Signed by: artoo <artoo@artixlinux.org> GPG Key ID: 3292CD0BB0DB310B

+ 4
- 4
r/repos/extra-x86_64/PKGBUILD View File

@@ -3,14 +3,14 @@
# Contributor: K. Piche <kpiche@rogers.com>

pkgname=r
pkgver=3.5.3
pkgrel=2
pkgver=3.6.0
pkgrel=1
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' 'pcre' 'readline' 'zlib' 'perl' 'gcc-libs'
'ncurses' 'pcre' 'readline' 'zlib' 'perl'
'libxt' 'libxmu' 'pango' 'xz' 'zip' 'unzip' 'curl' 'icu')
makedepends=('jdk7-openjdk' 'gcc-fortran' 'tk')
optdepends=('tk: tcl/tk interface' 'texlive-bin: latex sty files' 'gcc-fortran: needed to compile some CRAN packages'
@@ -21,7 +21,7 @@ source=("https://cran.r-project.org/src/base/R-${pkgver%%.*}/R-${pkgver}.tar.gz"
'r.desktop'
'r.png'
'R.conf')
sha1sums=('986b1d80632e6f489e9b50ce36a4c67ecb987b4d'
sha1sums=('c8a1949e763d22ec3b1dbdd251afcb0f1d2d5c76'
'dd214eee232b7aced7366722ad416b6b39be8e1b'
'a69a07ec363440efc18ce0a7f2af103375dea978'
'43668da6cfd1b4455a99f23e79e2059294dddac9')

+ 0
- 87
r/repos/testing-x86_64/PKGBUILD View File

@@ -1,87 +0,0 @@
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
# Contributor: K. Piche <kpiche@rogers.com>

pkgname=r
pkgver=3.6.0
pkgrel=1
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' 'pcre' 'readline' 'zlib' 'perl'
'libxt' 'libxmu' 'pango' 'xz' 'zip' 'unzip' 'curl' 'icu')
makedepends=('jdk7-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=('c8a1949e763d22ec3b1dbdd251afcb0f1d2d5c76'
'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"
}

+ 0
- 2
r/repos/testing-x86_64/R.conf View File

@@ -1,2 +0,0 @@
/usr/lib/R/lib


+ 0
- 11
r/repos/testing-x86_64/r.desktop View File

@@ -1,11 +0,0 @@
[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

BIN
r/repos/testing-x86_64/r.png View File


Loading…
Cancel
Save