aboutsummaryrefslogtreecommitdiff
path: root/libraries/zope.component/zope.component.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/zope.component/zope.component.SlackBuild')
-rw-r--r--libraries/zope.component/zope.component.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/zope.component/zope.component.SlackBuild b/libraries/zope.component/zope.component.SlackBuild
index 54e0e0d44f76f..d432dbdd4a347 100644
--- a/libraries/zope.component/zope.component.SlackBuild
+++ b/libraries/zope.component/zope.component.SlackBuild
@@ -29,7 +29,7 @@ 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
@@ -57,6 +57,11 @@ find -L . \
python setup.py install --root=$PKG
+# Python 3 support.
+if $(python3 -c 'import sys' 2>/dev/null); then
+ python3 setup.py install --root=$PKG
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild