summaryrefslogtreecommitdiffstats
path: root/network/putty/putty.SlackBuild
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-28 09:26:20 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-28 09:26:20 +0700
commit9989d31f404c7ea8e4f443ad82b74b571d981958 (patch)
tree6ecc31fe6e6ad2e13d9c5468b969f6d5dc9cfad1 /network/putty/putty.SlackBuild
parent1d38c0044f18bccd88edf25bf50411d154b31aae (diff)
downloadslackbuilds-9989d31f404c7ea8e4f443ad82b74b571d981958.tar.gz
slackbuilds-9989d31f404c7ea8e4f443ad82b74b571d981958.tar.xz
network/putty: Updated for version 0.77.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/putty/putty.SlackBuild')
-rw-r--r--network/putty/putty.SlackBuild26
1 files changed, 9 insertions, 17 deletions
diff --git a/network/putty/putty.SlackBuild b/network/putty/putty.SlackBuild
index f93f70f0e1..005c3a921d 100644
--- a/network/putty/putty.SlackBuild
+++ b/network/putty/putty.SlackBuild
@@ -33,7 +33,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=putty
-VERSION=${VERSION:-0.76}
+VERSION=${VERSION:-0.77}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -46,9 +46,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -96,19 +93,15 @@ find -L . \
# Create $PKG tree.
mkdir -p $PKG/usr/{bin,man/man1,doc/$PRGNAM-$VERSION/html,share/applications,share/pixmaps}
-cd unix
- CFLAGS="$SLKCFLAGS -Wno-strict-aliasing" \
- ./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man \
- --build=$ARCH-slackware-linux
-
- # Don't treat all warnings as errors
- sed -i 's/-Werror//' Makefile*
-
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_MANDIR=/usr/man \
+ -DCMAKE_BUILD_TYPE=Release ..
make
- make install DESTDIR=$PKG
+ make install/strip DESTDIR=$PKG
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -121,7 +114,6 @@ cp $CWD/putty.desktop $PKG/usr/share/applications/putty.desktop
cp $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