summaryrefslogtreecommitdiff
path: root/python/tempita/tempita.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/tempita/tempita.SlackBuild')
-rw-r--r--python/tempita/tempita.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/python/tempita/tempita.SlackBuild b/python/tempita/tempita.SlackBuild
index 4c97958d9a..da9f4eec9e 100644
--- a/python/tempita/tempita.SlackBuild
+++ b/python/tempita/tempita.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Tempita
-# Copyright 2014-2017 Kyle Guinn <elyk03@gmail.com>, USA
+# Copyright 2014-2019 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=tempita
SRCNAM=Tempita
VERSION=${VERSION:-0.5.3dev}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -38,7 +38,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
+PKG=$TMP/package-$PRGNAM-$VERSION
OUTPUT=${OUTPUT:-/tmp}
set -e
@@ -52,7 +52,11 @@ cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
-python setup.py install --root=$PKG
+python2 ./setup.py install --root=$PKG
+if python3 -c 'import sys' 2>/dev/null; then
+ rm -rf build
+ python3 ./setup.py install --root=$PKG
+fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild