diff options
author | Hunter Sezen <orbea@riseup.net> | 2019-08-18 07:02:21 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-08-18 07:02:21 +0700 |
commit | cd921fbcc54d28e82f830b287460cdd389e14bc0 (patch) | |
tree | 44a5df96e6059cd256647be21bade438915388bd /libraries/mbedtls/mbedtls.SlackBuild | |
parent | c171c12e847b704e50613c508f4c7441dd700f7d (diff) |
libraries/mbedtls: Updated for version 2.16.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/mbedtls/mbedtls.SlackBuild')
-rw-r--r-- | libraries/mbedtls/mbedtls.SlackBuild | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/libraries/mbedtls/mbedtls.SlackBuild b/libraries/mbedtls/mbedtls.SlackBuild index c7c57925d298a..8a5249f1f6b44 100644 --- a/libraries/mbedtls/mbedtls.SlackBuild +++ b/libraries/mbedtls/mbedtls.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for mbedtls # Copyright 2015 Euan Thoms (euan at potensol dot com) +# Copyright 2019 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mbedtls -VERSION=${VERSION:-2.6.1} -LICENSE=apache +VERSION=${VERSION:-2.16.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,9 +55,7 @@ else LIBDIRSUFFIX="" fi -DOCS="ChangeLog LICENSE README.md $CWD/$PRGNAM.SlackBuild" - -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -76,35 +74,23 @@ mkdir build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - -DSYSCONF_INSTALL_DIR:PATH=/etc \ - -DINCLUDE_INSTALL_DIR:PATH=/usr/include \ -DLIB_INSTALL_DIR:PATH=/usr/lib${LIBDIRSUFFIX} \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DSHARE_INSTALL_PREFIX:PATH=/usr/share \ - -DMAN_INSTALL_DIR:PATH=/usr/man \ - -DBUILD_SHARED_LIBS:BOOL=ON \ -DCMAKE_SKIP_RPATH:BOOL=ON \ - -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ - -DUSE_SHARED_MBEDTLS_LIBRARY=On \ - -DUSE_STATIC_MBEDTLS_LIBRARY=Off \ - -DENABLE_TESTING=Off \ + -DUSE_SHARED_MBEDTLS_LIBRARY=ON \ + -DUSE_STATIC_MBEDTLS_LIBRARY=OFF \ + -DENABLE_TESTING=OFF \ -DCMAKE_BUILD_TYPE:STRING=Release .. make make install DESTDIR=$PKG cd .. -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 -print0 | xargs -0 file | grep -e "executable" -e "shared object" | + grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION -chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION -chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/* - -# Slackware already include this -rm -f $PKG/usr/bin/{md5sum,sha1sum} +cp -a CONTRIBUTING.md ChangeLog LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |