diff options
Diffstat (limited to 'academic/HMMER/HMMER.SlackBuild')
-rw-r--r-- | academic/HMMER/HMMER.SlackBuild | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/academic/HMMER/HMMER.SlackBuild b/academic/HMMER/HMMER.SlackBuild index 02b15867cd..923c84093c 100644 --- a/academic/HMMER/HMMER.SlackBuild +++ b/academic/HMMER/HMMER.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for HMMER -# Copyright 2016-2018 Petar Petrov slackalaxy@gmail.com +# Copyright 2016-2023 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,11 +22,15 @@ # 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=HMMER -SRCNAM=hmmer -VERSION=${VERSION:-3.2.1} +VERSION=${VERSION:-3.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=hmmer if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +40,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -91,13 +102,15 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +chmod 0644 $PKG/usr/man/man1/* + # Include some tutorial examples mkdir -p $PKG/usr/share/$PRGNAM -cp -a tutorial/* $PKG/usr/share/$PRGNAM +cp -a testsuite tutorial $PKG/usr/share/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - INSTALL LICENSE README.md RELEASE-$VERSION Userguide.pdf \ + INSTALL LICENSE README.md RELEASE-$VERSION.md Userguide.pdf \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -105,4 +118,4 @@ 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 |