diff options
author | Germán Márquez Mejía <manchito at users dot sourceforge dot net> | 2010-05-13 00:20:21 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:20:21 +0200 |
commit | 8910445629f53f7185f623a152b74d0774b95f57 (patch) | |
tree | e08286daeb140cb68dd058e82d2e80772c87c3b7 /academic/rkward/rkward.SlackBuild | |
parent | 5307ca63df81e5323f6a0f861c69b3c408c6cf8b (diff) | |
download | slackbuilds-8910445629f53f7185f623a152b74d0774b95f57.tar.gz |
academic/rkward: Updated for version 0.5.2
Diffstat (limited to 'academic/rkward/rkward.SlackBuild')
-rw-r--r-- | academic/rkward/rkward.SlackBuild | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/academic/rkward/rkward.SlackBuild b/academic/rkward/rkward.SlackBuild index 79fdea3606..1876f089e0 100644 --- a/academic/rkward/rkward.SlackBuild +++ b/academic/rkward/rkward.SlackBuild @@ -3,10 +3,9 @@ # Slackware build script for RKWard # # Written by Germán Márquez Mejía (manchito at users.sourceforge.net) -# PRGNAM=rkward -VERSION=${VERSION:-0.4.9b} +VERSION=${VERSION:-0.5.2} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -42,34 +41,28 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null -) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -#These files already exist within R +# These files already exist within R rm -vf $PKG/usr/share/apps/katepart/syntax/r.xml \ - $PKG/usr/lib/R/library/R.css + $PKG/usr/lib$LIBDIRSUFFIX/R/library/R.css mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS ChangeLog COPYING INSTALL README TODO \ + AUTHORS ChangeLog COPYING INSTALL README TODO NOTES \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -78,4 +71,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |