|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2009,2010,2011,2012 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2009-2012,2018 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -23,13 +23,13 @@ |
|
|
|
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org |
|
|
|
# |
|
|
|
# Latest EMBOSS sourcecode is available at: |
|
|
|
# <http://emboss.sourceforge.net/>. |
|
|
|
# <http://emboss.open-bio.org/>. |
|
|
|
# |
|
|
|
# Optional: ap/postgresql |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-EMBOSS} |
|
|
|
VERSION=${VERSION:-6.5.7} |
|
|
|
VERSION=${VERSION:-6.6.0} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
WGET=${WGET:-ftp://emboss.open-bio.org/pub/EMBOSS/$ARCHIVE} |
|
|
|
|
|
|
@ -60,7 +60,6 @@ fi |
|
|
|
|
|
|
|
# Compilation flags |
|
|
|
LIBDIRSUFFIX="" |
|
|
|
ENABLE64="" |
|
|
|
case "$ARCH" in |
|
|
|
i?86) |
|
|
|
CPUOPT="-O2 -march=$ARCH -mtune=i686" |
|
|
@ -79,14 +78,14 @@ if [ ! -r $ARCHIVE ]; then |
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
fi |
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
# Get REBASE data files |
|
|
|
if [ ! -r rebase.tar.gz ]; then |
|
|
|
wget -O embossre.enz ftp://ftp.neb.com/pub/rebase/emboss_e.908 |
|
|
|
wget -O embossre.sup ftp://ftp.neb.com/pub/rebase/emboss_s.908 |
|
|
|
wget -O embossre.ref ftp://ftp.neb.com/pub/rebase/emboss_r.908 |
|
|
|
wget -O embossre.enz http://rebase.neb.com/rebase/link_emboss_e |
|
|
|
wget -O embossre.sup http://rebase.neb.com/rebase/link_emboss_s |
|
|
|
wget -O embossre.ref http://rebase.neb.com/rebase/link_emboss_r |
|
|
|
tar czf rebase.tar.gz embossre.{enz,sup,ref} |
|
|
|
rm embossre.{enz,sup,ref} |
|
|
|
fi |
|
|
@ -114,8 +113,8 @@ make install-strip DESTDIR=$PKG |
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
install -m 644 AUTHORS COMPAT COPYING ChangeLog FAQ KNOWN_BUGS LICENSE NEWS \ |
|
|
|
ONEWS PROBLEMS README THANKS $PKG/usr/doc/$NAME |
|
|
|
install -m 644 AUTHORS COPYING ChangeLog FAQ LICENSE NEWS \ |
|
|
|
README THANKS $PKG/usr/doc/$NAME |
|
|
|
|
|
|
|
# Install REBASE data |
|
|
|
tar xf $CWD/rebase.tar.gz -C $PKG/usr/share/EMBOSS/data/REBASE |
|
|
@ -123,6 +122,11 @@ tar xf $CWD/rebase.tar.gz -C $PKG/usr/share/EMBOSS/data/REBASE |
|
|
|
# Copy slack-desc file |
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|
|
|
|
# Add dependency infos |
|
|
|
cat <<EOF > $PKG/install/slack-required |
|
|
|
postgresql |
|
|
|
EOF |
|
|
|
|
|
|
|
# Package the tree |
|
|
|
cd $PKG |
|
|
|
mkdir -p $OUT |
|
|
|