38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# Template file for 'R'
|
|
pkgname=R
|
|
version=4.0.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--docdir=/usr/share/doc/R rdocdir=/usr/share/doc/R
|
|
--with-lapack --with-blas --enable-R-shlib --with-tcltk
|
|
--enable-memory-profiling
|
|
LIBnn=lib"
|
|
hostmakedepends="gcc-fortran pkg-config perl less which"
|
|
makedepends="libgomp-devel readline-devel libXmu-devel libXt-devel
|
|
libpng-devel libjpeg-turbo-devel tiff-devel cairo-devel icu-devel
|
|
lapack-devel blas-devel zlib-devel bzip2-devel pcre2-devel liblzma-devel
|
|
libcurl-devel tcl-devel tk-devel libxml2-devel"
|
|
depends="xdg-utils less which"
|
|
short_desc="System for statistical computation and graphics"
|
|
maintainer="Florian Wagner <florian@wagner-flo.net>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.r-project.org/"
|
|
changelog="https://cran.r-project.org/doc/manuals/r-release/NEWS.html"
|
|
distfiles="https://cran.r-project.org/src/base/R-4/${pkgname}-${version}.tar.gz"
|
|
checksum=09983a8a78d5fb6bc45d27b1c55f9ba5265f78fa54a55c13ae691f87c5bb9e0d
|
|
nocross=yes
|
|
shlib_provides="libR.so"
|
|
|
|
pre_configure() {
|
|
export R_BROWSER=/usr/bin/xdg-open
|
|
export R_PDFVIEWER=/usr/bin/xdg-open
|
|
export FFLAGS="$CFLAGS"
|
|
}
|
|
|
|
post_install() {
|
|
# Sanitize Makeconf flags
|
|
vsed -i -e 's/^\(CFLAGS\|CXXFLAGS\|CXX1XFLAGS\|FFLAGS\|SAFE_FFLAGS\) = .*/\1 = -O2 -g $(LTO)/' \
|
|
-e 's/^LDFLAGS = .*/LDFLAGS =/' \
|
|
$DESTDIR/usr/lib/R/etc/Makeconf
|
|
}
|