libraries/libssh2: Updated for version 1.2.6.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Menno Duursma 2010-07-17 16:29:13 -05:00 committed by Erik Hanson
parent 9123bfe40e
commit af33efe208
2 changed files with 13 additions and 15 deletions

View file

@ -2,23 +2,21 @@
# Slackware build script for Libssh2
# Written by Menno E. Duursma <druiloor@zonnet.nl>
# Written by Menno Duursma <druiloor@zonnet.nl>
# This program is free software. It comes without any warranty.
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=libssh2
VERSION=${VERSION:-1.2.2}
VERSION=${VERSION:-1.2.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -26,7 +24,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@ -57,14 +55,16 @@ find . -type d -exec chmod 0755 {} \; -o -type f -exec chmod u+rw,go+r-w,a-s {}
# --enable-mac-none Permit "none" MAC -- NOT RECOMMENDED
# --disable-gex-new Disable "new" diffie-hellman-group-exchange-sha1 method
# --enable-debug Enable pedantic and debug options
CFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS -ldl" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--disable-static \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man
--mandir=/usr/man \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@ -72,10 +72,8 @@ make install-strip DESTDIR=$PKG
find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [A-Z][A-Z][A-Z]* $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,10 +1,10 @@
PRGNAM="libssh2"
VERSION="1.2.2"
VERSION="1.2.6"
HOMEPAGE="http://www.libssh2.org/"
DOWNLOAD="http://www.libssh2.org/download/libssh2-1.2.2.tar.gz"
MD5SUM="fa8d9cd425bdd62f57244fc61fb54da7"
DOWNLOAD="http://www.libssh2.org/download/libssh2-1.2.6.tar.gz"
MD5SUM="7887bd95f1d5fc69780bfc5784410574"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Menno Duursma"
EMAIL="druiloor@zonnet.nl"
APPROVED="dsomero"
APPROVED="Erik Hanson"