36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# Template file for 'R'
|
|
pkgname=R
|
|
version=3.4.3
|
|
revision=1
|
|
nocross=yes
|
|
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
|
|
LIBnn=lib"
|
|
hostmakedepends="gcc-fortran pkg-config perl less"
|
|
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 pcre-devel liblzma-devel
|
|
libcurl-devel tcl-devel tk-devel"
|
|
depends="xdg-utils less"
|
|
short_desc="System for statistical computation and graphics"
|
|
maintainer="Florian Wagner <florian@wagner-flo.net>"
|
|
license="GPL-2"
|
|
homepage="http://www.r-project.org/"
|
|
_changelog="https://cran.r-project.org/doc/manuals/r-release/NEWS.html"
|
|
distfiles="http://cran.r-project.org/src/base/R-3/${pkgname}-${version}.tar.gz"
|
|
checksum=7a3cb831de5b4151e1f890113ed207527b7d4b16df9ec6b35e0964170007f426
|
|
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
|
|
sed -i -e 's/^\(CFLAGS\|CXXFLAGS\|CXX1XFLAGS\|FFLAGS\|SAFE_FFLAGS\) = .*/\1 = -O2 -g $(LTO)/' \
|
|
-e 's/^LDFLAGS = .*/LDFLAGS =/' \
|
|
$DESTDIR/usr/lib/R/etc/Makeconf
|
|
}
|