diff options
author | Larry Hajali <larryhaja@gmail.com> | 2016-08-10 11:19:26 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-13 07:22:36 +0700 |
commit | e346a596869cea38ac3276507cdc0c98b3ce80de (patch) | |
tree | 3e6cc913e92e2e30f128495b6c6ef49180f76e16 /libraries/tinyxml2/tinyxml2.SlackBuild | |
parent | ed8b0ff46b88620e455f87a75ee6f438e4f3ba57 (diff) |
libraries/tinyxml2: Updated for version 4.0.1.
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'libraries/tinyxml2/tinyxml2.SlackBuild')
-rw-r--r-- | libraries/tinyxml2/tinyxml2.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libraries/tinyxml2/tinyxml2.SlackBuild b/libraries/tinyxml2/tinyxml2.SlackBuild index 9a4463fa23a74..ab8f6d85c661b 100644 --- a/libraries/tinyxml2/tinyxml2.SlackBuild +++ b/libraries/tinyxml2/tinyxml2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for tinyxml2 -# Copyright 2014-2015 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2014-2016 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=tinyxml2 -VERSION=${VERSION:-3.0.0} +VERSION=${VERSION:-4.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz 2>/dev/null || tar xvf $CWD/$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -69,6 +69,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Fix end-of-inline encoding. +for i in *.cpp *.h; do + sed -e 's/\r//' $i > ${i}.new + touch -r $i ${i}.new + mv ${i}.new $i +done + mkdir build cd build cmake -G "Unix Makefiles" \ |