diff options
Diffstat (limited to 'academic/cufflinks/cufflinks.SlackBuild')
-rw-r--r-- | academic/cufflinks/cufflinks.SlackBuild | 68 |
1 files changed, 25 insertions, 43 deletions
diff --git a/academic/cufflinks/cufflinks.SlackBuild b/academic/cufflinks/cufflinks.SlackBuild index 33a09282e1..acc390420c 100644 --- a/academic/cufflinks/cufflinks.SlackBuild +++ b/academic/cufflinks/cufflinks.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for cufflinks -# Copyright 2013-2019 Petar Petrov slackalaxy@gmail.com +# Copyright 2013-2021 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,21 +22,22 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# With help from Archlinux AUR and Gentoo: -# https://aur.archlinux.org/packages/cufflinks/ -# http://euscan.iksaif.net/package/sci-biology/cufflinks/ +# For Slackware 15.0 I switched to just repackaging the upstream binaries. +# When I find a patch that fixes the build against boost and a bunch of other +# fixes, I will revert back to source build. Let's have ot like this for now. PRGNAM=cufflinks VERSION=${VERSION:-2.2.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac + ARCH="$( uname -m )" +fi + +if [ "$ARCH" != "x86_64" ]; then + printf "\n\n$ARCH is not supported... \n" >&2 + exit 1 fi CWD=$(pwd) @@ -44,28 +45,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-${VERSION}.Linux_${ARCH} +tar xvf $CWD/$PRGNAM-${VERSION}.Linux_${ARCH}.tar.gz +cd $PRGNAM-${VERSION}.Linux_${ARCH} chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -73,22 +60,17 @@ 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 {} \; -export EIGEN_CPPFLAGS="-I/usr/include/eigen3" - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --disable-optim \ - --with-boost-libdir=/usr/lib${LIBDIRSUFFIX} \ - --localstatedir=/var \ - --mandir=/usr/man \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG +# Just in case... +sed -i "s:python:python2:" cuffmerge + +install -D -m755 cuffcompare $PKG/usr/bin/cuffcompare +install -D -m755 cuffdiff $PKG/usr/bin/cuffdiff +install -D -m755 cufflinks $PKG/usr/bin/cufflinks +install -D -m755 cuffmerge $PKG/usr/bin/cuffmerge +install -D -m755 cuffnorm $PKG/usr/bin/cuffnorm +install -D -m755 cuffquant $PKG/usr/bin/cuffquant +install -D -m755 gffread $PKG/usr/bin/gffread +install -D -m755 gtf_to_sam $PKG/usr/bin/gtf_to_sam 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 |