aboutsummaryrefslogtreecommitdiff
path: root/academic/R/R.SlackBuild
diff options
context:
space:
mode:
authorafhpayne <github@komputermatrix.com>2022-02-08 13:37:30 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-09 16:18:00 +0700
commit06c9f39d3e0e10404648f58b2afc04914861d833 (patch)
treefe95650b73ef90303e6df312b5ff6ed895c0772b /academic/R/R.SlackBuild
parentb7fc02a960928fbe66b8862ab8d98986a15a58a5 (diff)
academic/R: Updated for version 4.1.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/R/R.SlackBuild')
-rw-r--r--academic/R/R.SlackBuild20
1 files changed, 6 insertions, 14 deletions
diff --git a/academic/R/R.SlackBuild b/academic/R/R.SlackBuild
index a7c14b12ae41e..69d417c0c6d80 100644
--- a/academic/R/R.SlackBuild
+++ b/academic/R/R.SlackBuild
@@ -2,7 +2,7 @@
# SlackBuild script for R
-# Copyright 2019-2020 Andrew Payne <phalange@komputermatrix.com>
+# Copyright 2019-2022 Andrew Payne <phalange@komputermatrix.com>
# Copyright 2014-2017 melikamp, Andrew Rowland
# This program is free software: you can redistribute it and/or modify
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=R
-VERSION=${VERSION:-4.0.0}
+VERSION=${VERSION:-4.1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -62,18 +62,10 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
+# Abort build if architecture is not 64-bit.
+if [ "$ARCH" != "x86_64" ]; then
+ echo "$ARCH is not supported."
+ exit 1
fi
set -e