mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/libssh2: Updated for version 1.2.2
This commit is contained in:
parent
d9b20548fb
commit
9b1f6c533b
3 changed files with 13 additions and 7 deletions
|
@ -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}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="libssh2"
|
||||
VERSION="0.18"
|
||||
VERSION="1.2.2"
|
||||
HOMEPAGE="http://www.libssh2.org/"
|
||||
DOWNLOAD="http://prdownloads.sourceforge.net/libssh2/libssh2-0.18.tar.gz"
|
||||
MD5SUM="5b9c83660aa4d1821ff2c05838e77e9d"
|
||||
DOWNLOAD="http://www.libssh2.org/download/libssh2-1.2.2.tar.gz"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="fa8d9cd425bdd62f57244fc61fb54da7"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Menno Duursma"
|
||||
EMAIL="druiloor@zonnet.nl"
|
||||
APPROVED="dsomero"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
libssh2: Libssh2 (SECSH network protocol library)
|
||||
libssh2:
|
||||
libssh2: libssh2 is a library implementing the SSH2 protocol.
|
||||
libssh2:
|
||||
libssh2: Sara Golemon is the libssh2 project manager at sourceforge.net
|
||||
libssh2:
|
||||
libssh2:
|
||||
|
@ -16,4 +17,3 @@ libssh2:
|
|||
libssh2:
|
||||
libssh2:
|
||||
libssh2:
|
||||
libssh2:
|
||||
|
|
Loading…
Reference in a new issue