mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/gsl: Updated for version 1.13
This commit is contained in:
parent
7bcb07aee8
commit
a70728e746
3 changed files with 23 additions and 12 deletions
|
@ -5,7 +5,7 @@
|
||||||
# Written by Aleksandar Samardzic <asamardzic@gmail.com>
|
# Written by Aleksandar Samardzic <asamardzic@gmail.com>
|
||||||
|
|
||||||
PRGNAM=gsl
|
PRGNAM=gsl
|
||||||
VERSION=${VERSION:-1.12}
|
VERSION=${VERSION:-1.13}
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -17,10 +17,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -42,34 +45,40 @@ CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--build=$ARCH-slackware-linux \
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
--host=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
( cd $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 "executable" | grep ELF | cut -f 1 -d : | \
|
||||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
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
|
( cd $PKG/usr/man
|
||||||
find . -type f -exec gzip -9 {} \;
|
find . -type f -exec gzip -9 {} \;
|
||||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
)
|
)
|
||||||
|
|
||||||
mv $PKG/usr/share/info $PKG/usr
|
mv $PKG/usr/share/info $PKG/usr
|
||||||
rm -f $PKG/usr/info/dir
|
rm -f $PKG/usr/info/dir
|
||||||
gzip -9 $PKG/usr/info/*.info*
|
gzip -9 $PKG/usr/info/*.info*
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README SUPPORT THANKS TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a \
|
||||||
|
AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
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}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="gsl"
|
PRGNAM="gsl"
|
||||||
VERSION="1.12"
|
VERSION="1.13"
|
||||||
HOMEPAGE="http://www.gnu.org/software/gsl"
|
HOMEPAGE="http://www.gnu.org/software/gsl"
|
||||||
DOWNLOAD="ftp://ftp.gnu.org/gnu/gsl/gsl-1.12.tar.gz"
|
DOWNLOAD="ftp://ftp.gnu.org/gnu/gsl/gsl-1.13.tar.gz"
|
||||||
MD5SUM="3ec101903c8157756fa1352161bd4c39"
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM="d9fcfa367c44ab68a25b4edf34c3c5f7"
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Aleksandar Samardzic"
|
MAINTAINER="Aleksandar Samardzic"
|
||||||
EMAIL="asamardzic@gmail.com"
|
EMAIL="asamardzic@gmail.com"
|
||||||
APPROVED="dsomero"
|
APPROVED="dsomero"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# make exactly 11 lines for the formatting to be correct. It's also
|
# make exactly 11 lines for the formatting to be correct. It's also
|
||||||
# customary to leave one space after the ':'.
|
# customary to leave one space after the ':'.
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|---------handy-ruler------------------------------------------------------|
|
||||||
gsl: GSL (a numerical library for C and C++ programmers)
|
gsl: GSL (a numerical library for C and C++ programmers)
|
||||||
gsl:
|
gsl:
|
||||||
gsl: The GNU Scientific Library (GSL) is a collection of routines for
|
gsl: The GNU Scientific Library (GSL) is a collection of routines for
|
||||||
|
@ -13,7 +13,7 @@ gsl: numerical computing. The routines are written from scratch by the
|
||||||
gsl: GSL team in ANSI C, and present a modern API for C programmers,
|
gsl: GSL team in ANSI C, and present a modern API for C programmers,
|
||||||
gsl: while allowing wrappers to be written for very high-level
|
gsl: while allowing wrappers to be written for very high-level
|
||||||
gsl: languages.
|
gsl: languages.
|
||||||
gsl:
|
gsl:
|
||||||
gsl: Homepage: http://www.gnu.org/software/gsl/
|
gsl: Homepage: http://www.gnu.org/software/gsl/
|
||||||
gsl:
|
gsl:
|
||||||
gsl:
|
gsl:
|
||||||
|
|
Loading…
Reference in a new issue