mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
libraries/QuantLib: Updated for version 0.9.7
This commit is contained in:
parent
eab5e61519
commit
efb5f10ea9
3 changed files with 11 additions and 5 deletions
|
@ -15,10 +15,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
|
||||
|
@ -40,6 +43,7 @@ CFLAGS="$SLKCFLAGS" \
|
|||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
|
@ -51,8 +55,10 @@ make
|
|||
make install DESTDIR=$PKG
|
||||
|
||||
( 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
|
||||
)
|
||||
|
||||
( cd $PKG/usr/man
|
||||
|
@ -69,4 +75,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}
|
||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="QuantLib"
|
|||
VERSION="0.9.7"
|
||||
HOMEPAGE="http://www.quantlib.org/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/quantlib/QuantLib-0.9.7.tar.gz"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="4add05ae7af8bc7bb4f0477c083eb99c"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Aleksandar Samardzic"
|
||||
EMAIL="asamardzic@gmail.com"
|
||||
APPROVED="dsomero"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
The Quantlib project is aimed at providing a comprehensive software
|
||||
framework for quantitative finance. QuantLib is a free open-source
|
||||
library for modeling, trading, and risk management in real-life.
|
||||
|
||||
QuantLib requires Boost, which is also available from SlackBuilds.org.
|
||||
|
|
Loading…
Reference in a new issue