diff options
Diffstat (limited to 'academic/STAR/STAR.SlackBuild')
-rw-r--r-- | academic/STAR/STAR.SlackBuild | 46 |
1 files changed, 35 insertions, 11 deletions
diff --git a/academic/STAR/STAR.SlackBuild b/academic/STAR/STAR.SlackBuild index 9ec244770f..bc4913730e 100644 --- a/academic/STAR/STAR.SlackBuild +++ b/academic/STAR/STAR.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for STAR -# Copyright 2018-2019 Rob van Nues +# Copyright 2018-2023 Rob van Nues <sborg63@disroot.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,22 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=STAR -VERSION=${VERSION:-2.7.6a} +VERSION=${VERSION:-2.7.11b} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +# This script is set for processors that support "Advanced Vector Extensions", +# (AVX), included since 2008 in Intel processors (Sandy Bridge) and since 2011 +# in AMD cpus (Bulldozer). AVX is an implementation of "Single Instruction +# stream-Multiple Data streams" (SIMD) to process vector type data. +# If no AVX (`cat /proc/cpuinfo | grep 'avx'`) is present, specify the +# available SIMD architecture (https://en.wikichip.org/wiki/x86/extensions), +# e.g. with "Streaming SIMD Extensions" use 'sse', and uncomment the next line. +#SIMD=${SIMD:-sse}; echo "Using ${SIMD} as SIMD" if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +47,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -45,7 +61,7 @@ if [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" else echo "Sorry, this program does not run/compile on your architecture ($ARCH)" - exit 1 + exit 0 fi set -e @@ -73,16 +89,23 @@ find -L . \ # https://github.com/alexdobin/STAR/issues/447 #so let's forget about this for now +#For processors that do not support AVX extensions, specify the target SIMD architecture +#make STAR CXXFLAGS_SIMD=sse cd source - - make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS" + if [ ! -z "${SIMD}" ]; then + echo "make with CXXFLAG_SIMD=${SIMD}" + make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS" CXXFLAGS_SIMD="$SIMD" + else + echo "default make" + make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS" + fi mkdir -p $PKG/usr/bin install -Dm755 $PRGNAM "$PKG/usr/bin/${PRGNAM}" - make clean - make ${PRGNAM}long CXXFLAGSextra="$CXXFLAGS" - install -Dm755 ${PRGNAM}long "$PKG/usr/bin/${PRGNAM}long" + #make clean + #make ${PRGNAM}long CXXFLAGSextra="$CXXFLAGS" + #install -Dm755 ${PRGNAM}long "$PKG/usr/bin/${PRGNAM}long" cd .. @@ -94,9 +117,10 @@ cp -a \ source/parametersDefault doc/${PRGNAM}manual.pdf CHANGES.md LICENSE README.md RELEASEnotes.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/parametersDefault mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |