diff options
Diffstat (limited to 'development/R/R.SlackBuild')
-rw-r--r-- | development/R/R.SlackBuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/development/R/R.SlackBuild b/development/R/R.SlackBuild index ec650dfe52627..40f449437228c 100644 --- a/development/R/R.SlackBuild +++ b/development/R/R.SlackBuild @@ -1,10 +1,11 @@ -#! /bin/sh +#!/bin/sh # Slackware build script for R # Written by Joel J. Adamson +# Modified by SlackBuilds.org PRGNAM=R -VERSION=2.6.2 +VERSION=2.7.2 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -18,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi rm -rf $PKG @@ -29,18 +32,24 @@ cd $PRGNAM-$VERSION || exit 1 chown -R root:root . chmod -R u+w,go+r-w,a-s . -# mandir and infodir are ignored, so don't bother with them +# adjust the path variable; you need pdflatex to build the LaTeX +# documentation +PATH=/usr/share/texmf/bin:$PATH + +# Set configure options +# If your app is written in C++, you'll also need to add a line for CXXFLAGS CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-perl=/usr/bin/perl \ - --build=$ARCH-slackware-linux + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux make || exit 1 make install DESTDIR=$PKG || exit 1 -make install-info DESTDIR=$PKG || exit 1 + ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null @@ -69,4 +78,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |