summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorPetar Petrov <ppetrov@paju.oulu.fi>2011-12-20 23:25:35 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-20 23:25:35 -0600
commit026e465cdb115def3586a0c14ca06479407aea40 (patch)
tree18547e752accf18cdcfbe90d0f9a6198ee89ad89 /academic
parentcf8d6e29ed99b62469a816f3d96885073909a548 (diff)
downloadslackbuilds-026e465cdb115def3586a0c14ca06479407aea40.tar.gz
academic/lalnview: various build fixes / tweaks
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/lalnview/References2
-rw-r--r--academic/lalnview/lalnview.SlackBuild40
-rw-r--r--academic/lalnview/lalnview.desktop4
-rw-r--r--academic/lalnview/lalnview.info2
-rw-r--r--academic/lalnview/slack-desc4
5 files changed, 34 insertions, 18 deletions
diff --git a/academic/lalnview/References b/academic/lalnview/References
index 2ba7f071bb..30bca65f96 100644
--- a/academic/lalnview/References
+++ b/academic/lalnview/References
@@ -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
diff --git a/academic/lalnview/lalnview.SlackBuild b/academic/lalnview/lalnview.SlackBuild
index 7b2f004dd3..1b25bcdb9d 100644
--- a/academic/lalnview/lalnview.SlackBuild
+++ b/academic/lalnview/lalnview.SlackBuild
@@ -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
diff --git a/academic/lalnview/lalnview.desktop b/academic/lalnview/lalnview.desktop
index 5abde1062d..02ad63d625 100644
--- a/academic/lalnview/lalnview.desktop
+++ b/academic/lalnview/lalnview.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Categories=Education;
Exec=lalnview
-Icon=lalnview.png
-Name=Lalnview
+Icon=lalnview
+Name=LalnView
StartupNotify=false
Type=Application
diff --git a/academic/lalnview/lalnview.info b/academic/lalnview/lalnview.info
index 9c544ebaef..d3921f29bf 100644
--- a/academic/lalnview/lalnview.info
+++ b/academic/lalnview/lalnview.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Petar Petrov"
EMAIL="ppetrov@paju.oulu.fi"
-APPROVED="Niels Horn"
+APPROVED="rworkman"
diff --git a/academic/lalnview/slack-desc b/academic/lalnview/slack-desc
index 53cc73d8e2..edda4dd46b 100644
--- a/academic/lalnview/slack-desc
+++ b/academic/lalnview/slack-desc
@@ -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: References: /usr/doc/lalnview-$VERSION/References
+lalnview: Home: http://pbil.univ-lyon1.fr/software/lalnview.html
lalnview:
lalnview:
lalnview:
lalnview:
-lalnview: References: /usr/doc/lalnview-$VERSION/References
-lalnview: Home: http://pbil.univ-lyon1.fr/software/lalnview.html