academic/lalnview: various build fixes / tweaks

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Petar Petrov 2011-12-20 23:25:35 -06:00 committed by Robby Workman
parent cf8d6e29ed
commit 026e465cdb
5 changed files with 36 additions and 20 deletions

View file

@ -1,5 +1,3 @@
References:
Duret, L., Gasteiger, E. and Perrière, G. (1996) LalnView: a graphical Duret, L., Gasteiger, E. and Perrière, G. (1996) LalnView: a graphical
viewer for pairwise sequence alignments. Comput. Applic. Biosci., viewer for pairwise sequence alignments. Comput. Applic. Biosci.,
12, 507-510 12, 507-510

View file

@ -1,16 +1,32 @@
#!/bin/sh #!/bin/sh
# Slackware build script for lalnview # Slackware build script for lalnview
# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and
# hereby submitted to the public domain
# THIS SLACKBUILD IS DISTRIBUTETD IN THE HOPE OF BEING # Copyright 2011 Petar Petrov, ppetrov@paju.oulu.fi
# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_ # All rights reserved.
# RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT. #
# Redistribution and use of this script, with or without modification, 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.
# Thanks to Niels Horn for correcting the CFLAGS.
PRGNAM=lalnview PRGNAM=lalnview
VERSION=${VERSION:-3.0} VERSION=${VERSION:-3.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -56,20 +72,22 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
OPT="$SLKCFLAGS" \ # Point to the correct place of lalnview.help
make sed -i "s:lalnview.help:/usr/doc/$PRGNAM-$VERSION/lalnview.help:" MF_MainWindow.cxx
install -D -m755 lalnview $PKG/usr/bin/lalnview
OPT="$SLKCFLAGS" make
install -D -m755 lalnview $PKG/usr/bin/$PRGNAM
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Menu item and icon (couldn't find an icon, so i made one myself. I know it sucks.) # Couldn't find an icon, so i made one myself. I know it sucks.
mkdir -p $PKG/usr/share/{applications,pixmaps} mkdir -p $PKG/usr/share/{applications,pixmaps}
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp lalnview.help $PKG/usr/doc/$PRGNAM-$VERSION cp -a lalnview.help $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References

View file

@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Categories=Education; Categories=Education;
Exec=lalnview Exec=lalnview
Icon=lalnview.png Icon=lalnview
Name=Lalnview Name=LalnView
StartupNotify=false StartupNotify=false
Type=Application Type=Application

View file

@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Petar Petrov" MAINTAINER="Petar Petrov"
EMAIL="ppetrov@paju.oulu.fi" EMAIL="ppetrov@paju.oulu.fi"
APPROVED="Niels Horn" APPROVED="rworkman"

View file

@ -11,9 +11,9 @@ lalnview:
lalnview: LalnView is a graphical program for visualizing local alignments lalnview: LalnView is a graphical program for visualizing local alignments
lalnview: between two sequences (protein or nucleic acids). lalnview: between two sequences (protein or nucleic acids).
lalnview: lalnview:
lalnview:
lalnview:
lalnview:
lalnview:
lalnview: References: /usr/doc/lalnview-$VERSION/References lalnview: References: /usr/doc/lalnview-$VERSION/References
lalnview: Home: http://pbil.univ-lyon1.fr/software/lalnview.html lalnview: Home: http://pbil.univ-lyon1.fr/software/lalnview.html
lalnview:
lalnview:
lalnview:
lalnview: