diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-05-24 20:57:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-05-24 20:57:23 +0700 |
commit | a9c81705ea0396f3cb9cb2b33ac01b48d0a3aa18 (patch) | |
tree | cdacae38e7111c2e638bc4cf9f49af3c5afa25c4 /python/python-parsedatetime/python-parsedatetime.SlackBuild | |
parent | e519b967770747f98d0d6dea5fe469a0ab93583f (diff) |
python/python-parsedatetime: Updated for version 2.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-parsedatetime/python-parsedatetime.SlackBuild')
-rw-r--r-- | python/python-parsedatetime/python-parsedatetime.SlackBuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/python/python-parsedatetime/python-parsedatetime.SlackBuild b/python/python-parsedatetime/python-parsedatetime.SlackBuild index 60b8c2be52..ebfee286b2 100644 --- a/python/python-parsedatetime/python-parsedatetime.SlackBuild +++ b/python/python-parsedatetime/python-parsedatetime.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python-parsedatetime -# Copyright 2015 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2015-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=python-parsedatetime -SRCNAM=parsedatetime -VERSION=${VERSION:-1.5} +DIRNAM=parsedatetime +VERSION=${VERSION:-2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,14 +55,14 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz -cd $SRCNAM-$VERSION +rm -rf $DIRNAM-$VERSION +tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz +cd $DIRNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -76,8 +76,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.rst *.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.rst *.txt notes/*.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/doc/$PRGNAM-$VERSION/requirements.txt mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |