summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlarryhaja <larryhaja@gmail.com>2013-11-13 18:21:11 -0800
committerRobby Workman <rworkman@slackbuilds.org>2013-11-13 23:02:13 -0600
commit17cf6e9916f5eb2a7bd5c21daf168b8b719d2d1a (patch)
treeaf9deecb5fdd43fa4915260fa6b3d00b6d958027
parent0a4ad67823bf1a525e4a7760a72c812caadf2908 (diff)
downloadslackbuilds-17cf6e9916f5eb2a7bd5c21daf168b8b719d2d1a.tar.gz
academic/speedcrunch: script clean up
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--academic/speedcrunch/speedcrunch.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/academic/speedcrunch/speedcrunch.SlackBuild b/academic/speedcrunch/speedcrunch.SlackBuild
index 72bf682328..ffd247f0d9 100644
--- a/academic/speedcrunch/speedcrunch.SlackBuild
+++ b/academic/speedcrunch/speedcrunch.SlackBuild
@@ -56,12 +56,14 @@ patch -p1 < $CWD/speedcrunch-0.10.1-fix-icon-name.patch
mkdir build && cd build
# Make translations for speedcrunch
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
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DLIB_SUFFIX:STRING=${LIBDIRSUFFIX} \
+ -DCMAKE_BUILD_TYPE=RELEASE \
+ ../src
+
+ make VERBOSE=1
make install DESTDIR=$PKG
cd -
@@ -69,8 +71,9 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog* COPYING HACKING.txt INSTALL.txt LISEZMOI PACKAGERS \
- README TRANSLATORS doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ ChangeLog* COPYING HACKING.txt INSTALL.txt LISEZMOI PACKAGERS \
+ README TRANSLATORS doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install