diff options
Diffstat (limited to 'academic/mathics/mathics.SlackBuild')
-rw-r--r-- | academic/mathics/mathics.SlackBuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/academic/mathics/mathics.SlackBuild b/academic/mathics/mathics.SlackBuild index 6979a0b9ab97..72870973eaad 100644 --- a/academic/mathics/mathics.SlackBuild +++ b/academic/mathics/mathics.SlackBuild @@ -25,11 +25,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mathics -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-4.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +SRCNAM=Mathics3 + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -69,9 +71,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf Mathics-$VERSION -tar xvf $CWD/Mathics-$VERSION.tar.gz -cd Mathics-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -79,7 +81,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python2 setup.py install --root=$PKG +python3 setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |