summaryrefslogtreecommitdiff
path: root/libraries/aubio/aubio.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2019-07-05 13:18:04 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-07-06 07:00:13 +0700
commit1e386bdd4235cc246cc33aaa336671db9486f914 (patch)
treed584cab384c8e114ee48770a0a47fcf78d0c6b54 /libraries/aubio/aubio.SlackBuild
parent74211c68dc121d1f736c8016cfcb6ec1a303ac73 (diff)
downloadslackbuilds-1e386bdd4235cc246cc33aaa336671db9486f914.tar.gz
libraries/aubio: Fix handling of the python{,3} bindings.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/aubio/aubio.SlackBuild')
-rw-r--r--libraries/aubio/aubio.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/libraries/aubio/aubio.SlackBuild b/libraries/aubio/aubio.SlackBuild
index b115f4c930..254ed00744 100644
--- a/libraries/aubio/aubio.SlackBuild
+++ b/libraries/aubio/aubio.SlackBuild
@@ -60,7 +60,7 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION-2
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -93,10 +93,16 @@ CXXFLAGS="$SLKCFLAGS" \
./waf install \
--destdir=$PKG
-if ! [ "${BINDINGS:-no}" = "no" ]; then
- cd python
- python setup.py install --root=$PKG
- cd ..
+cd ..
+cp -a $PRGNAM-$VERSION $PRGNAM-$VERSION-2
+cd -
+
+if $(python -c 'import numpy' 2>/dev/null); then
+ python setup.py install --root=$PKG
+fi
+if $(python3 -c 'import numpy' 2>/dev/null); then
+ ( cd ../$PRGNAM-$VERSION-2
+ python3 setup.py install --root=$PKG )
fi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \