academic/lalnview: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Petar Petrov 2020-09-19 01:01:15 +07:00 committed by Willy Sudiarto Raharjo
parent 64e6c76a43
commit 2f026a37f9
3 changed files with 22 additions and 13 deletions

View File

@ -5,6 +5,13 @@ similarities between the two sequences. Blocks of similarity between
the two sequences are colored according to the degree of identity
between segments.
A suitable alignment tool for protein sequences is SIM at ExPASy:
https://web.expasy.org/sim/
SIM finds a user-defined number of best non-intersecting alignments
between two protein sequences or within a sequence. Once the alignment
is computed, you can view it using LalnView.
For details and citation:
Duret, L., Gasteiger, E. and Perriere, G. (1996) LalnView: a
graphical viewer for pairwise sequence alignments. Comput. Applic.

View File

@ -2,7 +2,7 @@
# Slackware build script for lalnview
# Copyright 2011-2016 Petar Petrov slackalaxy@gmail.com
# Copyright 2011-2020 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,12 +26,14 @@
PRGNAM=lalnview
VERSION=${VERSION:-3.0}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
SRCTAR=sources20050615.tar
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -42,8 +44,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -64,24 +66,24 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
tar xvf $CWD/sources20050615.tar
tar xvf $CWD/$SRCTAR
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Point to the correct place of lalnview.help
sed -i "s:lalnview.help:/usr/doc/$PRGNAM-$VERSION/lalnview.help:" MF_MainWindow.cxx
sed -i "s:$PRGNAM.help:/usr/doc/$PRGNAM-$VERSION/$PRGNAM.help:" MF_MainWindow.cxx
OPT="$SLKCFLAGS" make
install -D -m755 lalnview $PKG/usr/bin/$PRGNAM
install -D -m755 $PRGNAM $PKG/usr/bin/$PRGNAM
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Couldn't find an icon, so i made one myself. I know it sucks.
# Couldn't find an icon, so i made one myself.
mkdir -p $PKG/usr/share/{applications,pixmaps}
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps

Binary file not shown.

Before

Width:  |  Height:  |  Size: 977 B

After

Width:  |  Height:  |  Size: 2.3 KiB