Browse Source

Revert "ap/primer3: Upgraded to primer3-2.2.2beta."

This reverts commit b0552f698d.

primer3 version 2.2.2-beta does not work with EMBOSS's eprimer3,
so keep the last non-beta version for the moment.
slackware-14.2
Damien Goutte-Gattat 11 years ago
parent
commit
98081226da
  1. 1
      ap/primer3/primer3-1.1.4.tar.gz.sha1
  2. 1
      ap/primer3/primer3-2.2.2-beta.tar.gz.sha1
  3. 29
      ap/primer3/primer3.SlackBuild

1
ap/primer3/primer3-1.1.4.tar.gz.sha1

@ -0,0 +1 @@
fcabf7d8aa31c5568bd130b318c3ead4a1b9aa3a primer3-1.1.4.tar.gz

1
ap/primer3/primer3-2.2.2-beta.tar.gz.sha1

@ -1 +0,0 @@
7e03cf1c0c1c750306c4b421c9f771d649a388e8 primer3-2.2.2-beta.tar.gz

29
ap/primer3/primer3.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009,2010 Damien Goutte-Gattat
# Copyright (C) 2008,2009 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,14 +27,14 @@
# Source package infos
NAMESRC=${NAMESRC:-primer3}
VERSION=${VERSION:-2.2.2-beta}
VERSION=${VERSION:-1.1.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/primer3/$ARCHIVE}
WGET=${WGET:-http://switch.dl.sourceforge.net/sourceforge/primer3/$ARCHIVE}
# Built package infos
NAMEPKG=${NAMEPKG:-primer3}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -75,25 +75,24 @@ if [ ! -r $ARCHIVE ]; then
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar tf $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
mkdir $NAMEPKG-$VERSION && tar xf $CWD/$ARCHIVE -C $NAMEPKG-$VERSION
cd $NAMEPKG-$VERSION
make -j $JOBS -C src O_OPTS="$CPUOPT"
# Install
mkdir -p $PKG/usr/bin
install -s -m 755 src/{primer3_core,oligotm,ntdpal,long_seq_tm_test} \
$PKG/usr/bin
install -s -m 755 src/primer3_core $PKG/usr/bin/primer3
install -s -m 755 src/{oligotm,ntdpal,long_seq_tm_test} $PKG/usr/bin
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-${VERSION//-/}
install -m 644 COPYING.txt example primer3_manual.htm \
primer3_v1_1_4_default_settings.txt primer3web_v0_4_0_default_settings.txt \
src/gpl-2.0.txt src/release_notes.txt $PKG/usr/doc/$NAMEPKG-${VERSION//-/}
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 \
COPYING.txt README.txt how-to-cite.txt example src/release_notes.txt \
$PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -103,9 +102,9 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-${VERSION//-/}-$ARCH-$BUILD.$EXT
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
rm -rf $TMP/$NAMEPKG-$VERSION
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot

Loading…
Cancel
Save