mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
libraries/cln: Updated for version 1.2.2
This commit is contained in:
parent
d19b0aa278
commit
6dc0a3aedc
3 changed files with 36 additions and 29 deletions
|
@ -1,9 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for cln
|
# Slackware build script for cln
|
||||||
# Written by Andrew Psaltis (ampsaltis@gmail.com)
|
|
||||||
|
|
||||||
# Copyright 2007 Andrew Psaltis, Vienna, VA, USA
|
# Copyright 2007,2009 Andrew Psaltis <ampsaltis@gmail.com>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
# permitted provided that the following conditions are met:
|
# permitted provided that the following conditions are met:
|
||||||
|
@ -22,25 +21,24 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
DOCS="COPYING INSTALL* NEWS README TODO"
|
|
||||||
|
|
||||||
PRGNAM=cln
|
PRGNAM=cln
|
||||||
VERSION=1.1.13
|
VERSION=1.2.2
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
elif [ "$ARCH" = "x86_64" ]; then # For BlueWhite64
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -48,7 +46,7 @@ rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xfvj $CWD/$PRGNAM-$VERSION.tar.bz2
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
chmod -R u+w,go+r-w,a-s .
|
||||||
|
@ -63,33 +61,43 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--with-gnu-ld
|
--with-gnu-ld \
|
||||||
|
--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
|
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
|
||||||
)
|
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||||
|
xargs strip --strip-unneeded 2> /dev/null
|
||||||
( cd $PKG/usr/man
|
|
||||||
find . -type f -exec gzip -9 {} \;
|
|
||||||
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
|
||||||
)
|
)
|
||||||
|
|
||||||
rm -f $PKG/usr/info/dir
|
rm -f $PKG/usr/info/dir
|
||||||
gzip -9 $PKG/usr/info/*.info*
|
gzip -9 $PKG/usr/info/*
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
# Remove empty man dir
|
||||||
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
rm -rf $PKG/usr/man
|
||||||
mv $PKG/usr/share/html $PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
|
||||||
|
cp -a \
|
||||||
|
COPYING INSTALL* NEWS README TODO \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a \
|
||||||
|
examples/*.cc examples/*.1 \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION/examples
|
||||||
|
# Move docs that ignore --docdir to their proper place
|
||||||
|
mv $PKG/usr/share/html $PKG/usr/share/dvi/* $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
|
||||||
|
|
||||||
|
# Everything that was in $PKG/usr/share has been moved to
|
||||||
|
# $PKG/usr/doc/cln-$VERSION (or is empty at time of compression)
|
||||||
|
rm -rf $PKG/usr/share/
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
# Make the package
|
|
||||||
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.tgz
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="cln"
|
PRGNAM="cln"
|
||||||
VERSION="1.1.13"
|
VERSION="1.2.2"
|
||||||
HOMEPAGE="http://www.ginac.de/CLN"
|
HOMEPAGE="http://www.ginac.de/CLN"
|
||||||
DOWNLOAD="http://www.ginac.de/CLN/cln-1.1.13.tar.bz2"
|
DOWNLOAD="ftp://ftpthep.physik.uni-mainz.de/pub/gnu/cln-1.2.2.tar.bz2"
|
||||||
MD5SUM="1f3d227360003b389bba14c8a5c3695a"
|
MD5SUM="6b479281fec86314b4c7a9357bd83ef8"
|
||||||
MAINTAINER="Andrew Psaltis"
|
MAINTAINER="Andrew Psaltis"
|
||||||
EMAIL="ampsaltis@gmail.com"
|
EMAIL="ampsaltis@gmail.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/sh
|
if [ -x /usr/bin/install-info ] ; then
|
||||||
|
chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/cln.info.gz 2>/dev/null
|
||||||
if [ -x usr/bin/install-info ] ; then
|
|
||||||
chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/cln.info.gz 2>/dev/null
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue