summaryrefslogtreecommitdiff
path: root/graphics/xdot
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2019-03-08 21:12:19 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-16 06:53:33 +0700
commitddca1e03e00010e98716e677256f8c07570e1238 (patch)
treeb2da119f4dda9c34e1853702698a372edbe651db /graphics/xdot
parenta29134952d64f540d7a372c335c741d5accef33c (diff)
downloadslackbuilds-ddca1e03e00010e98716e677256f8c07570e1238.tar.gz
graphics/xdot: Updated for version 1.0.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Diffstat (limited to 'graphics/xdot')
-rw-r--r--graphics/xdot/xdot.SlackBuild22
-rw-r--r--graphics/xdot/xdot.info8
2 files changed, 17 insertions, 13 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
diff --git a/graphics/xdot/xdot.info b/graphics/xdot/xdot.info
index 46e37b661a..9aba8f7ae7 100644
--- a/graphics/xdot/xdot.info
+++ b/graphics/xdot/xdot.info
@@ -1,10 +1,10 @@
PRGNAM="xdot"
-VERSION="0.6"
+VERSION="1.0"
HOMEPAGE="https://github.com/jrfonseca/xdot.py"
-DOWNLOAD="https://pypi.python.org/packages/source/x/xdot/xdot-0.6.tar.gz"
-MD5SUM="a8e5fc5208657b03ad1bd4c46de75724"
+DOWNLOAD="https://github.com/jrfonseca/xdot.py/archive/1.0/xdot.py-1.0.tar.gz"
+MD5SUM="4e60c42d009a8802db6c1b4dab519863"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="graphviz"
+REQUIRES="python3 pygobject3-python3 graphviz"
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"