diff options
Diffstat (limited to 'network/putty/putty.SlackBuild')
-rw-r--r-- | network/putty/putty.SlackBuild | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/network/putty/putty.SlackBuild b/network/putty/putty.SlackBuild index f93f70f0e1e80..005c3a921db0f 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 |