summaryrefslogtreecommitdiffstats
path: root/academic/genometools/genometools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/genometools/genometools.SlackBuild')
-rw-r--r--academic/genometools/genometools.SlackBuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/academic/genometools/genometools.SlackBuild b/academic/genometools/genometools.SlackBuild
index 6b3c0a762c..8fc7ba42b8 100644
--- a/academic/genometools/genometools.SlackBuild
+++ b/academic/genometools/genometools.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for genometools
-# Copyright 2014-2020 Petar Petrov slackalaxy@gmail.com
+# Copyright 2014-2021 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -66,11 +66,22 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
+
+# This is a looping symlink that the 'find' step below complains about.
+# The only thing that is used from this location is 'sam.h', so let's
+# just make a proper folder and copy it there.
+rm src/external/samtools-0.1.18/samtools
+mkdir -p src/external/samtools-0.1.18/samtools
+cp src/external/samtools-0.1.18/sam.h src/external/samtools-0.1.18/samtools
+
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Thanks Debian for the patch
+patch -p1 -i $CWD/gcc10.patch
# Fix library and man pages path
sed -i "s:lib/libgenometools:lib${LIBDIRSUFFIX}/libgenometools:g" Makefile