academic/speedcrunch: script clean up

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
larryhaja 2013-11-13 18:21:11 -08:00 committed by Robby Workman
parent 0a4ad67823
commit 17cf6e9916

View file

@ -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