diff options
Diffstat (limited to 'network/putty/putty.SlackBuild')
-rw-r--r-- | network/putty/putty.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/network/putty/putty.SlackBuild b/network/putty/putty.SlackBuild index 20e30be677dc..dd2ac44758dc 100644 --- a/network/putty/putty.SlackBuild +++ b/network/putty/putty.SlackBuild @@ -10,8 +10,11 @@ # Maintained by Binh Nguyen <binhvng@gmail.com> # from version 0.62 +# Maintained by Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# from version 0.63 + PRGNAM=putty -VERSION=${VERSION:-0.62} +VERSION=${VERSION:-0.63} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -64,7 +67,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Create $PKG tree. -mkdir -p $PKG/usr/{bin,man/man1,doc/$PRGNAM-$VERSION/html} +mkdir -p $PKG/usr/{bin,man/man1,doc/$PRGNAM-$VERSION/html,share/applications,share/pixmaps} cd unix CFLAGS="$SLKCFLAGS -Wno-strict-aliasing" \ @@ -81,16 +84,21 @@ cd unix make install DESTDIR=$PKG cd .. -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 + +cp -a $CWD/putty.desktop $PKG/usr/share/applications/putty.desktop +cp -a $CWD/putty.png $PKG/usr/share/pixmaps/putty.png cp -a README LICENCE doc/puttydoc.txt $PKG/usr/doc/$PRGNAM-$VERSION cp -a doc/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |