diff options
Diffstat (limited to 'graphics/xdot/xdot.SlackBuild')
-rw-r--r-- | graphics/xdot/xdot.SlackBuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/graphics/xdot/xdot.SlackBuild b/graphics/xdot/xdot.SlackBuild index 9e89f88499..76849b4213 100644 --- a/graphics/xdot/xdot.SlackBuild +++ b/graphics/xdot/xdot.SlackBuild @@ -1,9 +1,9 @@ #!/bin/sh -# Slackware build script for xdot. +# Slackware build script for xdot # # Copyright 2009-2010 Marco Bonetti <sid77@slackware.it> -# Copyright 2015 Kyle Guinn <elyk03@gmail.com>, USA +# Copyright 2015-2019 Kyle Guinn <elyk03@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,13 +24,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=xdot -VERSION=${VERSION:-0.6} +SRCNAM=xdot.py +VERSION=${VERSION:-1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$(uname -m)" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$(uname -m) ;; esac @@ -38,23 +39,26 @@ fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM +PKG=$TMP/package-$PRGNAM-$VERSION OUTPUT=${OUTPUT:-/tmp} +DOCS="LICENSE.txt README.md sample.py" + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . chmod -R u+w,go-w,a+rX-st . -python setup.py install --root=$PKG +python3 setup.py install --root=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |