Browse Source

ap/RNAstructure: Add rna launcher script.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
6020b9e5a6
  1. 13
      ap/RNAstructure/RNAstructure.SlackBuild
  2. 21
      ap/RNAstructure/rna.sh

13
ap/RNAstructure/RNAstructure.SlackBuild

@ -33,7 +33,7 @@ WGET=${WGET:-http://rna.urmc.rochester.edu/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-RNAstructure}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -80,15 +80,18 @@ make all
)
# Install binaries
mkdir -p $PKG/usr/bin $PKG/usr/lib$LIBDIRSUFFIX $PKG/usr/share/RNAstructure
for exe in bifold bipartition ct2dot dot2ct draw dynalign efn2 multilign oligoscreen partition refold scorer stochastic ; do
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
if [ -f exe/$exe-smp ]; then
install -m 755 -s exe/$exe-smp $PKG/usr/bin/$exe
install -m 755 -s exe/$exe-smp $PKG/usr/libexec/RNAstructure/$(echo $exe | tr [A-Z] [a-z])
else
install -m 755 -s exe/$exe $PKG/usr/bin/$exe
install -m 755 -s exe/$exe $PKG/usr/libexec/RNAstructure/$(echo $exe | tr [A-Z] [a-z])
fi
done
# Install launcher script
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 644 exe/RNAstructure.jar $PKG/usr/share/RNAstructure

21
ap/RNAstructure/rna.sh

@ -0,0 +1,21 @@
#!/bin/sh
export DATAPATH=/usr/share/RNAstructure/data_tables
program=$1
if [ -z "$program" ]; then
echo "rna: command expected" >&2
echo "Available commands:" >&2
ls /usr/libexec/RNAstructure >&2
exit 1
elif [ ! -x /usr/libexec/RNAstructure/$program ]; then
echo "rna: command not found" >&2
echo "Available commands:" >&2
ls /usr/libexec/RNAstructure >&2
exit 2
fi
shift
exec /usr/libexec/RNAstructure/$program "$@"
Loading…
Cancel
Save