summaryrefslogtreecommitdiffstats
path: root/academic/primer3/primer3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/primer3/primer3.SlackBuild')
-rw-r--r--academic/primer3/primer3.SlackBuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/academic/primer3/primer3.SlackBuild b/academic/primer3/primer3.SlackBuild
index 5281f13889..9a4bd6b511 100644
--- a/academic/primer3/primer3.SlackBuild
+++ b/academic/primer3/primer3.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for primer3
-# Copyright 2011-2021 Petar Petrov slackalaxy@gmail.com
+# Copyright 2011-2023 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=primer3
-VERSION=${VERSION:-2.4.0}
+VERSION=${VERSION:-2.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -79,13 +76,10 @@ 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
-sed -i -e "s|-O2|$SLKCFLAGS|" -e "s|-g -Wall|-fpermissive|" Makefile
+sed -i -e "s|-O2|$SLKCFLAGS|" Makefile
# Look for configuration files in /usr/share instead of /opt
sed -i "s:/opt/primer3_config:/usr/share/$PRGNAM/primer3_config:g" thal_main.c primer3_boulder_main.c
@@ -94,7 +88,7 @@ make
# This is recommended, but the tests take a really long time. Be patient
# if you uncomment the line below.
-# make test
+#make test
install -D -m755 primer3_core $PKG/usr/bin/primer3_core
install -D -m755 ntdpal $PKG/usr/bin/ntdpal
@@ -108,7 +102,9 @@ 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 settings_files src/primer3_config $PKG/usr/share/$PRGNAM
+cp -a \
+ kmer_lists/readme.txt settings_files example src/primer3_config \
+ $PKG/usr/share/$PRGNAM
# Copy the man pages from Debian
mkdir -p $PKG/usr/man/man1
@@ -122,7 +118,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- src/{release_notes.txt,primer3_manual.htm} LICENSE example README.md \
+ src/{release_notes.txt,primer3_manual.htm} LICENSE 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