summaryrefslogtreecommitdiff
path: root/academic/primer3/primer3.SlackBuild
diff options
context:
space:
mode:
authorPetar Petrov <ppetrov@paju.oulu.fi>2011-11-07 18:39:00 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-11-26 09:08:06 -0600
commit95eb3a89b9e77849dfb9188f9ebf5b2fc0f1bd88 (patch)
treece4b4c96272a01e154d099623db1b00dc1721d30 /academic/primer3/primer3.SlackBuild
parent278bd97c4d40dba73fe04e8cc5cda939be7ee710 (diff)
downloadslackbuilds-95eb3a89b9e77849dfb9188f9ebf5b2fc0f1bd88.tar.gz
academic/primer3: Build bump, new symlink and misc. cleanup.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'academic/primer3/primer3.SlackBuild')
-rw-r--r--academic/primer3/primer3.SlackBuild24
1 files changed, 14 insertions, 10 deletions
diff --git a/academic/primer3/primer3.SlackBuild b/academic/primer3/primer3.SlackBuild
index fbba3a73f5..150008b4f3 100644
--- a/academic/primer3/primer3.SlackBuild
+++ b/academic/primer3/primer3.SlackBuild
@@ -1,17 +1,19 @@
#!/bin/sh
# Slackware build script for primer3
-# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and
+# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and
# hereby submitted to the public domain
-# THIS SLACKBUILD IS DISTRIBUTETD IN THE HOPE OF BEING
-# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_
+# Thanks to Niels Horn for correcting the CFLAGS.
+
+# THIS SLACKBUILD IS DISTRIBUTETD IN THE HOPE OF BEING
+# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_
# RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT.
-PRGNAM=primer3
+PRGNAM=primer3
VERSION=${VERSION:-2.2.3}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+BUILD=${BUILD:-2}
+TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -62,9 +64,9 @@ sed -i "/^CFLAGS/s/=/+=/" Makefile
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
- make
+make
-# This is recommended, but the tests take a really long time.
+# This is recommended, but the tests take a really long time.
# Be patient if you uncomment the next line.
# make test
@@ -74,14 +76,16 @@ install -D -m755 ntdpal $PKG/usr/bin/ntdpal
install -D -m755 ntthal $PKG/usr/bin/ntthal
install -D -m755 oligotm $PKG/usr/bin/oligotm
-cd ..
+# eprimer32 from EMBOSS expects the binary to be called primer32_core
+ln -s primer3_core $PKG/usr/bin/primer32_core
+cd $TMP/$PRGNAM-$VERSION
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- COPYING.txt example primer3_manual.htm \
+ src/release_notes.txt COPYING.txt example primer3_manual.htm \
$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