### this file is sourced not run
PKGVER=4.3.1
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=R-$PKGVER.tar.gz
MD5SUM=b83cee497046d4aef649eb79e6df83e8
SRC_URL=https://cran.r-project.org/src/base/R-4/$TARBALL
BUNDLE=

SLACKREQ='libreadline curl libX11 tcl tk libpcre2 libpng libjpeg-turbo libtiff cairo
libicu libblas'
SLACKDESC="gnu-r: gnu-r $PKGVER (GNU R Statistical Computing)
gnu-r: 
gnu-r: GNU R is GNU version of S, a freely available language and 
gnu-r: environment for statistical computing and graphics which provides a 
gnu-r: wide variety of statistical and graphical techniques: linear and 
gnu-r: nonlinear modelling, statistical tests, time series analysis, 
gnu-r: classification, clustering, etc. Please consult the R project 
gnu-r: homepage for further information. Note that this is basic build, if 
gnu-r: you want better GUI, use RStudio instead supplied elsewhere.
gnu-r: 
gnu-r: http://cran.r-project.org/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	export ICU_DATA=/usr/share/icu/current/ # so ICU knows where its data is
	CONFFLAGS="$CONFFLAGS \
		--with-ICU        \
		--with-x          \
		--enable-R-shlib  \
		--disable-BLAS-shlib \
		--with-lapack     \
		--with-blas       \
	" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}
