diff options
author | nirosan <pnirosan@gmail.com> | 2016-04-22 11:11:17 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-03 15:24:06 +0000 |
commit | 3f6c03746a1f4cbd84b8417bcd8e4b2b7c466703 (patch) | |
tree | 5bcb70068ae091abdf401123066f3d2b0d526015 | |
parent | cbb0770d837b43f77e1ae29c7d60f29b8e71e87a (diff) | |
download | aports-3f6c03746a1f4cbd84b8417bcd8e4b2b7c466703.tar.bz2 aports-3f6c03746a1f4cbd84b8417bcd8e4b2b7c466703.tar.xz |
testing/R: new aport
$pkgurl: https://cran.r-project.org/
$pkgdesc: Alpine package of R Project for Statistical Computing
-rw-r--r-- | testing/R/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/R/APKBUILD b/testing/R/APKBUILD new file mode 100644 index 0000000000..0d98d37769 --- /dev/null +++ b/testing/R/APKBUILD @@ -0,0 +1,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" |