mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
academic/speedcrunch: script clean up
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
0a4ad67823
commit
17cf6e9916
1 changed files with 11 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue