aboutsummaryrefslogtreecommitdiffstats
path: root/testing/R/APKBUILD
blob: 0d98d37769f2bb7e1fa15cf59cd011f0941a856f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Nirosan <pnirosan@gmail.com>
# Maintainer: Nirosan <pnirosan@gmail.com>
pkgname=R
pkgver=3.2.4
pkgrel=0
pkgdesc="R-3.2.4 project for Statistical Computing"
url="https://www.r-project.org"
arch="all"
license="MIT"
depends="gfortran readline-dev xz-dev zlib-dev bzip2-dev pcre-dev curl-dev perl"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="https://cran.r-project.org/src/base/R-3/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	EXPORT LD_LIBRARY_PATH="$pkgdir"/lib64/R/lib:$LD_LIBRARY_PATH
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-x \
		|| return 1
	make || return 1
#	make check || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	ln -s "$pkgdir"/bin/R R
	ln -s "$pkgdir"/bin/Rscript Rscript
}

md5sums="5953104583ed93dc2085a6c80e884e4a  R-3.2.4.tar.gz"
sha256sums="bafd405fe9c2fe3bbe47a8a7730ad120f03b7df9fb0f61674fca19cf061dd350  R-3.2.4.tar.gz"
sha512sums="a74f01a9b47437feb81520c10936a6f2bc7700900730ec87b7f1442ee90bcf1d7aac9ef3345aa046c0566f1920f114da0a616c5f355b1e8480dc01e311476cbf  R-3.2.4.tar.gz"