diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-04-25 14:37:58 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-04-26 11:51:54 +0700 |
commit | 88035c7efe37465888b24f2dcb11f6b72c0366cb (patch) | |
tree | 5f639fd7ec894c4851b0eff968f35e806ab453b1 /libraries/openbabel/openbabel.SlackBuild | |
parent | 217fa998d32606b5a9bf8ade78526558ca6ac721 (diff) |
Revert 18dea74a4fc97 - go back to openbabel-2.4.1
Nothing I've tried so far can build with 3.1.1.
Diffstat (limited to 'libraries/openbabel/openbabel.SlackBuild')
-rw-r--r-- | libraries/openbabel/openbabel.SlackBuild | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/libraries/openbabel/openbabel.SlackBuild b/libraries/openbabel/openbabel.SlackBuild index 82107fc0f2e4..426fab52d49d 100644 --- a/libraries/openbabel/openbabel.SlackBuild +++ b/libraries/openbabel/openbabel.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for openbabel -# Copyright 2006,2013,2021 Robby Workman, Tuscaloosa, Alabama, USA +# Copyright 2006-2013 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,13 +25,14 @@ # Thanks to Daniil Bratashov (dn2010@gmail.com) for the cmake conversion PRGNAM=openbabel -VERSION=${VERSION:-3.1.1} +VERSION=${VERSION:-2.4.1} +SRCVER=$(echo $VERSION | tr . -) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i586 ;; + i?86) ARCH=i486 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -42,8 +43,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -61,9 +62,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-source.tar.bz2 -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +cd $PRGNAM-$PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -84,18 +85,6 @@ cd build make install DESTDIR=$PKG cd .. -# Sigh -if [ "$LIBDIRSUFFIX" == "64" ]; then - sed -i \ - -e "s,/usr/lib/,/usr/lib64/,g" \ - -e "s,IMPORT_PREFIX}/lib/,IMPORT_PREFIX}/lib64/,g" \ - $PKG/usr/lib/cmake/* - mv $PKG/usr/lib/cmake/* $PKG/usr/lib64/cmake - rmdir $PKG/usr/lib/cmake - mv $PKG/usr/lib/* $PKG/usr/lib64/ - rmdir $PKG/usr/lib -fi - 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 @@ -104,7 +93,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING README.md THANKS authors.txt doc/*.html \ + AUTHORS COPYING NEWS.md README.md THANKS authors.txt doc/*.html \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |