summaryrefslogtreecommitdiff
path: root/academic/rkward/rkward.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/rkward/rkward.SlackBuild')
-rw-r--r--academic/rkward/rkward.SlackBuild43
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}