mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
academic/lalnview: various build fixes / tweaks
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
cf8d6e29ed
commit
026e465cdb
5 changed files with 36 additions and 20 deletions
|
@ -1,5 +1,3 @@
|
|||
References:
|
||||
|
||||
Duret, L., Gasteiger, E. and Perrière, G. (1996) LalnView: a graphical
|
||||
viewer for pairwise sequence alignments. Comput. Applic. Biosci.,
|
||||
12, 507-510
|
||||
|
|
|
@ -1,16 +1,32 @@
|
|||
#!/bin/sh
|
||||
|
||||
# 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
|
||||
# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_
|
||||
# RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT.
|
||||
# Copyright 2011 Petar Petrov, ppetrov@paju.oulu.fi
|
||||
# All rights reserved.
|
||||
#
|
||||
# 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
|
||||
VERSION=${VERSION:-3.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
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 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
OPT="$SLKCFLAGS" \
|
||||
make
|
||||
install -D -m755 lalnview $PKG/usr/bin/lalnview
|
||||
# Point to the correct place of lalnview.help
|
||||
sed -i "s:lalnview.help:/usr/doc/$PRGNAM-$VERSION/lalnview.help:" MF_MainWindow.cxx
|
||||
|
||||
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 \
|
||||
| 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}
|
||||
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
|
||||
cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps
|
||||
|
||||
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/References > $PKG/usr/doc/$PRGNAM-$VERSION/References
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Categories=Education;
|
||||
Exec=lalnview
|
||||
Icon=lalnview.png
|
||||
Name=Lalnview
|
||||
Icon=lalnview
|
||||
Name=LalnView
|
||||
StartupNotify=false
|
||||
Type=Application
|
||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
|||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Petar Petrov"
|
||||
EMAIL="ppetrov@paju.oulu.fi"
|
||||
APPROVED="Niels Horn"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -11,9 +11,9 @@ lalnview:
|
|||
lalnview: LalnView is a graphical program for visualizing local alignments
|
||||
lalnview: between two sequences (protein or nucleic acids).
|
||||
lalnview:
|
||||
lalnview:
|
||||
lalnview:
|
||||
lalnview:
|
||||
lalnview:
|
||||
lalnview: References: /usr/doc/lalnview-$VERSION/References
|
||||
lalnview: Home: http://pbil.univ-lyon1.fr/software/lalnview.html
|
||||
lalnview:
|
||||
lalnview:
|
||||
lalnview:
|
||||
lalnview:
|
||||
|
|
Loading…
Reference in a new issue