summaryrefslogtreecommitdiffstats
path: root/academic/ncbi-blast+/ncbi-blast+.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/ncbi-blast+/ncbi-blast+.SlackBuild')
-rw-r--r--academic/ncbi-blast+/ncbi-blast+.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/academic/ncbi-blast+/ncbi-blast+.SlackBuild b/academic/ncbi-blast+/ncbi-blast+.SlackBuild
index 5958727d3f..26a8981142 100644
--- a/academic/ncbi-blast+/ncbi-blast+.SlackBuild
+++ b/academic/ncbi-blast+/ncbi-blast+.SlackBuild
@@ -4,7 +4,7 @@
# This takes the place of ncbi-blast-plus (2013-2019), which just
# repackaged the binaries provided by upstream.
-# Copyright 2013-2021 Petar Petrov slackalaxy@gmail.com
+# Copyright 2013-2023 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ncbi-blast+
-VERSION=${VERSION:-2.11.0}
+VERSION=${VERSION:-2.14.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -42,9 +42,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -95,7 +92,7 @@ cd c++
# Do not specify the libraries dir by the default way (--libdir=/lib${LIBDIRSUFFIX}),
# because the libs will not be included in the package.
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS -Wno-narrowing" \
./configure \
--prefix=/usr \
--libdir='${exec_prefix}'/lib${LIBDIRSUFFIX} \
@@ -121,6 +118,16 @@ make prefix=$PKG/usr install
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
+# fix a few permissions
+chmod 0644 $PKG/usr/include/ncbi-tools++/algo/dustmask/*.tex
+chmod 0644 $PKG/usr/include/ncbi-tools++/objects/gbproj/*.{hpp,h}
+chmod 0644 $PKG/usr/include/ncbi-tools++/objects/taxon3/*.hpp
+chmod 0644 $PKG/usr/include/ncbi-tools++/objtools/edit/*.hpp
+chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/*.so
+
+# remove static libs
+rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.a
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild