diff options
Diffstat (limited to 'libraries/libssh/libssh.SlackBuild')
-rw-r--r-- | libraries/libssh/libssh.SlackBuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/libraries/libssh/libssh.SlackBuild b/libraries/libssh/libssh.SlackBuild index 27adde8ae7fad..15ba2bc638ec8 100644 --- a/libraries/libssh/libssh.SlackBuild +++ b/libraries/libssh/libssh.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for libssh # Copyright 2009-2011 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2011 Niels Horn, Rio de Janeiro, RJ, Brazil # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,8 +23,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# revision date: 2011/10/24 + PRGNAM=libssh -VERSION=0.5.1 +VERSION=${VERSION:-0.5.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -85,15 +88,24 @@ cd build -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 + # We need to build the man-pages and documentation as well + make doc VERBOSE=1 make install DESTDIR=$PKG cd .. -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +# Manually install man-pages +mkdir -p $PKG/usr/man +cp -a build/doc/man/man3 $PKG/usr/man + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +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 \ - AUTHORS BSD ChangeLog COPYING INSTALL README \ + AUTHORS BSD ChangeLog COPYING INSTALL README build/doc/html build/doc/latex \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |