aboutsummaryrefslogtreecommitdiff
path: root/libraries/libssh2/libssh2.SlackBuild
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-13 00:31:56 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:31:56 +0200
commit9b1f6c533be1d1d63828d4d6eab46fe1651a67e0 (patch)
treeac3de0f8fad7fd349deeccacbe80044101755ec1 /libraries/libssh2/libssh2.SlackBuild
parentd9b20548fb9c23354bcda61c27bccec44ade6b94 (diff)
libraries/libssh2: Updated for version 1.2.2
Diffstat (limited to 'libraries/libssh2/libssh2.SlackBuild')
-rw-r--r--libraries/libssh2/libssh2.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/libssh2/libssh2.SlackBuild b/libraries/libssh2/libssh2.SlackBuild
index 9b2eef4c72884..ee41625243e04 100644
--- a/libraries/libssh2/libssh2.SlackBuild
+++ b/libraries/libssh2/libssh2.SlackBuild
@@ -9,7 +9,7 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=libssh2
-VERSION=${VERSION:-0.18}
+VERSION=${VERSION:-1.2.2}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -21,10 +21,13 @@ OUTPUT=${OUTPUT:-/tmp} # Drop the package in /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 # Exit on most errors
@@ -46,12 +49,13 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man
make
-make install DESTDIR=$PKG
+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
@@ -70,4 +74,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}