summaryrefslogtreecommitdiffstats
path: root/libraries/htslib
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/htslib')
-rw-r--r--libraries/htslib/README13
-rw-r--r--libraries/htslib/htslib.SlackBuild23
-rw-r--r--libraries/htslib/htslib.info6
-rw-r--r--libraries/htslib/slack-desc8
4 files changed, 29 insertions, 21 deletions
diff --git a/libraries/htslib/README b/libraries/htslib/README
index de684e9028..0ec918852b 100644
--- a/libraries/htslib/README
+++ b/libraries/htslib/README
@@ -1,7 +1,8 @@
-Prior to the introduction of HTSlib, SAMtools and BCFtools were distributed
-in a single samtools-0.1.x package.
-This old version remains available from SBo as samtools-legacy
+Prior to the introduction of HTSlib, SAMtools and BCFtools were
+distributed in a single samtools-0.1.x package. This old version remains
+available from SBo as samtools-legacy.
-HTSlib has been distributed as a separate package to facilitate the writing
-of programs against the HTSlib API. HTSlib also provides the bgzip, htsfile,
-and tabix utilities, so the installation of HTSlib provides these utilities as well.
+HTSlib has been distributed as a separate package to facilitate the
+writing of programs against the HTSlib API. HTSlib also provides the
+bgzip, htsfile, and tabix utilities, so the installation of HTSlib
+provides these utilities as well.
diff --git a/libraries/htslib/htslib.SlackBuild b/libraries/htslib/htslib.SlackBuild
index 230f89047b..d88f89c846 100644
--- a/libraries/htslib/htslib.SlackBuild
+++ b/libraries/htslib/htslib.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for htslib
-# Copyright 2018 rob van nues # All rights reserved.
+# Copyright 2018-2024 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:
@@ -21,10 +21,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=htslib
-VERSION=${VERSION:-1.9}
+VERSION=${VERSION:-1.20}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -34,7 +37,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}
@@ -91,6 +98,8 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+rm -f $PKG/usr/lib*/*.la
+
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
@@ -98,13 +107,11 @@ 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README LICENSE INSTALL NEWS \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README LICENSE NEWS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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/libraries/htslib/htslib.info b/libraries/htslib/htslib.info
index 5151ea72b5..fb49fe4935 100644
--- a/libraries/htslib/htslib.info
+++ b/libraries/htslib/htslib.info
@@ -1,8 +1,8 @@
PRGNAM="htslib"
-VERSION="1.9"
+VERSION="1.20"
HOMEPAGE="http://www.htslib.org"
-DOWNLOAD="https://github.com/samtools/htslib/releases/download/1.9/htslib-1.9.tar.bz2"
-MD5SUM="2ac92c9c3eef9986345ac69a05dd4d24"
+DOWNLOAD="https://github.com/samtools/htslib/releases/download/1.20/htslib-1.20.tar.bz2"
+MD5SUM="127cbea4e9a8c084fb09c3fd24bd825d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/libraries/htslib/slack-desc b/libraries/htslib/slack-desc
index 5d7ac1f556..c26f985a51 100644
--- a/libraries/htslib/slack-desc
+++ b/libraries/htslib/slack-desc
@@ -11,9 +11,9 @@ htslib:
htslib: HTSlib is an implementation of a unified C library for accessing
htslib: common file formats, such as SAM, CRAM and VCF, used for high-
htslib: throughput sequencing data, and is the core library used by samtools
-htslib: and bcftools. HTSlib only depends on zlib. It is known to be
-htslib: compatible with gcc, g++ and clang. This is an independent package
-htslib: to provide the HTSlib API for other programs.
+htslib: and bcftools. It is known to be compatible with gcc, g++ and clang.
+htslib: HTSlib also provides the bgzip, htsfile, and tabix utilities.
+htslib:
+htslib: Homepage: http://www.htslib.org
htslib:
-htslib: Home: http://www.htslib.org
htslib: