summaryrefslogtreecommitdiffstats
path: root/academic/samtools
diff options
context:
space:
mode:
Diffstat (limited to 'academic/samtools')
-rw-r--r--academic/samtools/samtools.SlackBuild20
-rw-r--r--academic/samtools/samtools.info6
2 files changed, 18 insertions, 8 deletions
diff --git a/academic/samtools/samtools.SlackBuild b/academic/samtools/samtools.SlackBuild
index da9e176475..4a8883a689 100644
--- a/academic/samtools/samtools.SlackBuild
+++ b/academic/samtools/samtools.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for samtools
# Copyright 2013-2016 Petar Petrov slackalaxy@gmail.com
-# Copyright 2017-2020 Rob van Nues # All rights reserved.
+# Copyright 2017-2021 Rob van Nues # All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -22,10 +22,13 @@
# 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=samtools
-VERSION=${VERSION:-1.11}
+VERSION=${VERSION:-1.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
# Some applications still rely on the legacy samtools API instead of using htslib
# exclusively, in that case, install the headers in /usr/include/bam and the static
@@ -47,7 +50,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}
@@ -124,4 +134,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
diff --git a/academic/samtools/samtools.info b/academic/samtools/samtools.info
index 2d42d9d715..91b54352ff 100644
--- a/academic/samtools/samtools.info
+++ b/academic/samtools/samtools.info
@@ -1,8 +1,8 @@
PRGNAM="samtools"
-VERSION="1.11"
+VERSION="1.12"
HOMEPAGE="http://www.htslib.org"
-DOWNLOAD="https://github.com/samtools/samtools/releases/download/1.11/samtools-1.11.tar.bz2"
-MD5SUM="9fd052652a9ceb56fc1098e63f596330"
+DOWNLOAD="https://github.com/samtools/samtools/releases/download/1.12/samtools-1.12.tar.bz2"
+MD5SUM="14540f346cc2f438cea21b2fa7e40fb5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="htslib"