aboutsummaryrefslogtreecommitdiff
path: root/academic/primer3/primer3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/primer3/primer3.SlackBuild')
-rw-r--r--academic/primer3/primer3.SlackBuild32
1 files changed, 19 insertions, 13 deletions
diff --git a/academic/primer3/primer3.SlackBuild b/academic/primer3/primer3.SlackBuild
index 8e60d3fe02fca..d3ae1b399c1b2 100644
--- a/academic/primer3/primer3.SlackBuild
+++ b/academic/primer3/primer3.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for primer3
-# Copyright 2011-2016 Petar Petrov slackalaxy@gmail.com
+# Copyright 2011-2018 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=primer3
-VERSION=${VERSION:-2.3.7}
+VERSION=${VERSION:-2.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -69,6 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Thanks to Debian for the patch
+patch -p1 -i $CWD/gcc-7.patch
+
cd ./src
# Use our CFLAGS
@@ -81,8 +84,8 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
-# This is recommended, but the tests take a really long time.
-# Be patient if you uncomment the next line.
+# This is recommended, but the tests take a really long time. Be patient
+# if you uncomment the line below.
# make test
install -D -m755 primer3_core $PKG/usr/bin/primer3_core
@@ -97,18 +100,21 @@ ln -s primer3_core primer32_core
# Copy configuration files and settings to /usr/share
cd $TMP/$PRGNAM-$VERSION
mkdir -p $PKG/usr/share/$PRGNAM
-cp -a src/primer3_config \
- primer3_v1_1_4_default_settings.txt \
- primer3web_v0_4_0_default_settings.txt \
- primer3web_v3_0_0_default_settings.txt \
- $PKG/usr/share/$PRGNAM
+cp -a settings_files src/primer3_config $PKG/usr/share/$PRGNAM
+
+# Copy the man pages from Debian
+mkdir -p $PKG/usr/man/man1
+cp $CWD/man1/* $PKG/usr/man/man1
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
+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 \
- src/release_notes.txt COPYING.txt example primer3_manual.htm \
+ src/{release_notes.txt,primer3_manual.htm} LICENSE example README.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References