diff options
author | Menno Duursma <druiloor@zonnet.nl> | 2010-07-17 16:29:13 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-07-21 01:42:41 -0500 |
commit | af33efe208617a682b37e56150062c8e310ba2aa (patch) | |
tree | 04c62e106586def22ff5e3da67cbb24b0e7602b8 /libraries/libssh2/libssh2.SlackBuild | |
parent | 9123bfe40e3e831eed69afe860ecfa161871f99d (diff) |
libraries/libssh2: Updated for version 1.2.6.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'libraries/libssh2/libssh2.SlackBuild')
-rw-r--r-- | libraries/libssh2/libssh2.SlackBuild | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libraries/libssh2/libssh2.SlackBuild b/libraries/libssh2/libssh2.SlackBuild index 98e6b06be1f74..f238b70d36447 100644 --- a/libraries/libssh2/libssh2.SlackBuild +++ b/libraries/libssh2/libssh2.SlackBuild @@ -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 |