mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
academic/qtoctave: Updated for version 0.8.1
This commit is contained in:
parent
8021496c30
commit
5307ca63df
3 changed files with 14 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
QtOctave is a graphical user interface for gnu octave, which is an
|
||||
open source program alternative to Matlab.
|
||||
|
||||
QtOctave requires Octave and Qt4, both available on SlackBuilds.org.
|
||||
QtOctave requires Octave available on SlackBuilds.org.
|
||||
|
|
|
@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686 -DNDEBUG"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -DNDEBUG"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC -DNDEBUG"
|
||||
SLKCFLAGS="-O2 -fPIC -DNDEBUG"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
@ -43,7 +46,8 @@ cmake \
|
|||
-DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
.
|
||||
-DLIB_SUFFIX:STRING=${LIBDIRSUFFIX} .
|
||||
|
||||
make
|
||||
|
||||
# The install target doesn't have a DESTDIR or INSTALL_ROOT or equivalent,
|
||||
|
@ -73,8 +77,10 @@ find $PKG/usr/share -type f -exec chmod 0644 {} \;
|
|||
find $PKG/usr/share -type d -exec chmod 0755 {} \;
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
@ -91,4 +97,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
|||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="qtoctave"
|
|||
VERSION="0.8.1"
|
||||
HOMEPAGE="http://qtoctave.wordpress.com/"
|
||||
DOWNLOAD="http://forja.rediris.es/frs/download.php/877/qtoctave-0.8.1.tar.gz"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="b4e237b578f9c2624bb0fab2cb7ea691"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Mauro Giachero"
|
||||
EMAIL="mauro_dot_giachero_at_gmail_dot_com"
|
||||
APPROVED="David Somero"
|
||||
|
|
Loading…
Reference in a new issue