summaryrefslogtreecommitdiffstats
path: root/network/putty/putty.SlackBuild
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackbuilds.org>2014-03-12 12:31:04 -0500
committer Erik Hanson <erik@slackbuilds.org>2014-03-12 12:31:04 -0500
commitcd48a72e4aa1985764b4f3b96993fd5166071805 (patch)
treed82b3b26a6f67f197def196e05e0b17bb5c51905 /network/putty/putty.SlackBuild
parent2079d92a4078e83795a0c8cbd086fddae00b20be (diff)
downloadslackbuilds-cd48a72e4aa1985764b4f3b96993fd5166071805.tar.gz
slackbuilds-cd48a72e4aa1985764b4f3b96993fd5166071805.tar.xz
network/putty: Updated for version 0.63, new maintainer.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/putty/putty.SlackBuild')
-rw-r--r--network/putty/putty.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/network/putty/putty.SlackBuild b/network/putty/putty.SlackBuild
index 20e30be677..dd2ac44758 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}