Browse Source

ap/muscle: Added muscle-3.8.31.

slackware-14.2
Damien Goutte-Gattat 11 years ago
parent
commit
e5ec5326bb
  1. 106
      ap/muscle/muscle.SlackBuild
  2. 1
      ap/muscle/muscle3.8.31_src.tar.gz.sha1
  3. BIN
      ap/muscle/muscle_userguide3.8.pdf
  4. 12
      ap/muscle/slack-desc

106
ap/muscle/muscle.SlackBuild

@ -0,0 +1,106 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2011 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest muscle sourcecode is available at:
# <http://www.drive5.com/muscle/>.
# Source package infos
NAMESRC=${NAMESRC:-muscle}
VERSION=${VERSION:-3.8.31}
ARCHIVE=${ARCHIVE:-$NAMESRC${VERSION}_src.tar.gz}
WGET=${WGET:-http://www.drive5.com/muscle/downloads$VERSION/$ARCHIVE}
DOC_FILE=muscle_userguide3.8.pdf
WGET_DOC=http://www.drive5.com/muscle/$DOC_FILE
# Build infos
NAMEPKG=${NAMEPKG:-muscle}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Get the documentation
if [ ! -r $DOC_FILE ]; then
wget -c -O $DOC_FILE.part "$WGET_DOC"
mv $DOC_FILE.part $DOC_FILE
fi
# Compile and install
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME/src
head -n 3 mk > $$.sh
. $$.sh
for cppname in $CPPNames ; do
g++ -c -O3 -msse2 -mfpmath=sse -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 \
$cppname.cpp -o $cppname.o
done
g++ -o muscle $ObjNames
install -s -m 755 -D muscle $PKG/usr/bin/muscle
install -m 644 -D $CWD/$DOC_FILE \
$PKG/usr/doc/$NAMEPKG-$VERSION/user-manual.pdf
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

1
ap/muscle/muscle3.8.31_src.tar.gz.sha1

@ -0,0 +1 @@
2fe55db73ff4e7ac6d4ca692f8f213d1c5071dac muscle3.8.31_src.tar.gz

BIN
ap/muscle/muscle_userguide3.8.pdf

12
ap/muscle/slack-desc

@ -0,0 +1,12 @@
|-----handy-ruler-------------------------------------------------------|
muscle: muscle (protein alignement program)
muscle:
muscle: MUSCLE is a new computer program for creating multiple alignements of
muscle: protein sequences.
muscle:
muscle: MUSCLE is released in the public domain and is freely available from
muscle: http://www.drive5.com/muscle.
muscle:
muscle:
muscle:
muscle:
Loading…
Cancel
Save