diff options
Diffstat (limited to 'academic/meme-db-motif/meme-db-motif.SlackBuild')
-rw-r--r-- | academic/meme-db-motif/meme-db-motif.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/academic/meme-db-motif/meme-db-motif.SlackBuild b/academic/meme-db-motif/meme-db-motif.SlackBuild index f0e266d8c8..949df9e2be 100644 --- a/academic/meme-db-motif/meme-db-motif.SlackBuild +++ b/academic/meme-db-motif/meme-db-motif.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for meme-db-motif -# Copyright 2020 Petar Petrov slackalaxy@gmail.com +# Copyright 2020-2021 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,16 +22,26 @@ # 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=meme-db-motif -VERSION=${VERSION:-12.19} +VERSION=${VERSION:-12.23} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=motif_databases ARCH=noarch -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} @@ -62,4 +72,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 |