ap/RNAstructure: Upgraded to RNAstructure-5.8.1.

slackware-14.2
Damien Goutte-Gattat 7 years ago
parent 34b730d06f
commit 908d660281

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014 Damien Goutte-Gattat
# Copyright (C) 2014,2016 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,13 +27,13 @@
# Source package infos
NAMESRC=${NAMESRC:-RNAstructure}
VERSION=${VERSION:-5.6}
VERSION=${VERSION:-5.8.1}
ARCHIVE=${ARCHIVE:-${NAMESRC}Source.tgz}
WGET=${WGET:-http://rna.urmc.rochester.edu/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-RNAstructure}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -57,7 +57,11 @@ if [ ! -d $TMP ]; then
fi
LIBDIRSUFFIX=""
[ "x$ARCH" = xx86_64 ] && LIBDIRSUFFIX="64"
LIBNAMESUFFIX=""
if [ "x$ARCH" = xx86_64 ] ; then
LIBDIRSUFFIX="64"
LIBNAMESUFFIX="_64"
fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
@ -72,16 +76,14 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
sed -i "s,^INCLUDEPATH1 =.*$,INCLUDEPATH1 = \"/usr/lib$LIBDIRSUFFIX/jdk1.7.0_45/include\"," compiler.h
sed -i "s,^INCLUDEPATH2 =.*$,INCLUDEPATH2 = \"/usr/lib$LIBDIRSUFFIX/jdk1.7.0_45/include/linux\"," compiler.h
make all
(cd RNAstructure_java_interface
make GUI
(cd java_interface
make gui
)
# Install binaries
mkdir -p $PKG/usr/libexec/RNAstructure $PKG/usr/lib$LIBDIRSUFFIX $PKG/usr/share/RNAstructure
for exe in AllSub CircleCompare DuplexFold DynalignDotPlot EnergyPlot Fold MaxExpect NAPSS ProbKnot ProbabilityPlot ProbablePair RemovePseudoknots ShapeKnots TurboFold bifold bipartition ct2dot dot2ct draw dynalign efn2 multilign oligoscreen partition refold scorer stochastic ; do
for exe in AccessFold AllSub CircleCompare DuplexFold DynalignDotPlot EnergyPlot EnsembleEnergy Fold Fold-smp MaxExpect NAPSS OligoWalk PARTS ProbKnot ProbabilityPlot ProbablePair RemovePseudoknots ShapeKnots TurboFold TurboFold-smp bifold bipartition ct2dot design dot2ct draw dynalign dynalign_ii efn2 multilign oligoscreen partition phmm refold scorer stochastic ; do
if [ -f exe/$exe-smp ]; then
install -m 755 -s exe/$exe-smp $PKG/usr/libexec/RNAstructure/$(echo $exe | tr [A-Z] [a-z])
else
@ -93,7 +95,9 @@ done
install -m 755 -D $CWD/rna.sh $PKG/usr/bin/rna
# Install Java program
install -m 755 -s exe/libRNAstructure_GUI.so $PKG/usr/lib$LIBDIRSUFFIX
install -m 755 -s exe/libRNAstructure_GUI$LIBNAMESUFFIX.so \
$PKG/usr/lib$LIBDIRSUFFIX
install -m 644 exe/RNAstructure.jar $PKG/usr/share/RNAstructure
cat > $PKG/usr/bin/RNAstructure <<EOF
#!/bin/sh

@ -1 +1 @@
bb87a56f87a34b440c826fd9864230ebc9eaa704 RNAstructureSource.tgz
bf5d33d0904a0c8f86bbbe84aae3bf21979e73e2 RNAstructureSource.tgz

Loading…
Cancel
Save