aboutsummaryrefslogtreecommitdiff
path: root/academic/speedcrunch/speedcrunch.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-05-13 00:20:23 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:20:23 +0200
commit7e3da41ec3d14af5a6540a5d8685e1494417dcb2 (patch)
treeb153740dd40ce747db0671f7ae827cb11e09180b /academic/speedcrunch/speedcrunch.SlackBuild
parent257a0d99e9754f53aba6fc409a576d2ca602eb88 (diff)
academic/speedcrunch: Updated for version 0.10.1
Diffstat (limited to 'academic/speedcrunch/speedcrunch.SlackBuild')
-rw-r--r--academic/speedcrunch/speedcrunch.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/academic/speedcrunch/speedcrunch.SlackBuild b/academic/speedcrunch/speedcrunch.SlackBuild
index fafd3cd0cb5e7..df496abe6a9a6 100644
--- a/academic/speedcrunch/speedcrunch.SlackBuild
+++ b/academic/speedcrunch/speedcrunch.SlackBuild
@@ -17,10 +17,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -42,10 +45,11 @@ patch -p1 < $CWD/speedcrunch-0.10.1-fix-icon-name.patch
mkdir build && cd build
# Make translations for speedcrunch
- lrelease-qt4 ../src/$PRGNAM.pro
+ lrelease ../src/$PRGNAM.pro
cmake "-DCMAKE_INSTALL_PREFIX=/usr" \
"-DCMAKE_CXX_FLAGS=$SLKCFLAGS" \
"-DCMAKE_C_FLAGS=$SLKCFLAGS" \
+ "-DLIB_SUFFIX:STRING=${LIBDIRSUFFIX}" \
"-DCMAKE_BUILD_TYPE=$ARCH-slackware-linux" ../src
make
make install DESTDIR=$PKG
@@ -67,4 +71,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$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}