summaryrefslogtreecommitdiff
path: root/academic/speedcrunch/speedcrunch.SlackBuild
diff options
context:
space:
mode:
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 fafd3cd0cb..df496abe6a 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}